Skip to content

Transition guide for using mouse/touch events from 1.x to 2.x. #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mudit06mah
Copy link

Updated Readme to provide transition guide for using mouse/touch events from 1.x to 2.x. (also fixed a minor grammatical error)
closes #23

README.md Outdated

Instead, in 2.x you can use the key function to directly compare the key value.
```js
if (key === 'Enter') { // Enter key

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you’re referencing key here, would it be possible to briefly mention the related change involving code as well? While it’s not currently documented on the reference page, you can refer to the PR I created: #7902 for context.

@mudit06mah
Copy link
Author

@perminder-17 I have added code as well, can you review it again and let me know if I need to add something else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include transition guide for using mouse/touch events from 1.x to 2.x
2 participants