Skip to content
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

Touch events support #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Touch events support #30

wants to merge 1 commit into from

Conversation

gssvv
Copy link

@gssvv gssvv commented Jun 6, 2020

Fixes a bug when using the plugin with touch events (line touchstart) does not make any sense.
The problem was that touch events do not have event.clientX and event.clientY. Instead, have event.touches that keeps an array of touches. I use first of them to get clientX and clientY for ripple style.
So if event.clientX is unavailable, we refer to event.touches[0].clientX. The same is for clientY

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.

1 participant