Skip to content

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