Skip to content
Snippets Groups Projects
Unverified Commit a485ebc2 authored by tusooa's avatar tusooa :zap:
Browse files

Check whether we swiped only for mouse pointer

parent 6980e4dd
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,11 @@ class SwipeAndClickGesture {
this.swipeEndCallback(sign)
}
this._reset()
if (swiped) {
// Only a mouse will fire click event when
// the end point is far from the starting point
// so for other kinds of pointers do not check
// whether we have swiped
if (swiped && event.pointerType === 'mouse') {
this._preventNextClick = true
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment