Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

removed onTouchMove event listener, so it will be more effective. #523

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

Conversation

ghking1
Copy link

@ghking1 ghking1 commented Mar 12, 2017

fastclick with onTouchMove event listener is not effective, and sometimes may not work well, when I want it work work with some scroll plugin. because every time when I move my finger, it must call a function in fastclick.
so, now I removed onTouchMove event listener, instead of check whether finger has moved in the onTouchEnd event. 
In the same time, I need touchStartX  and touchStartY remember clientX and clientY, but not pageX and pageY. because when I scroll the screen, pageX and pageY may not change, but clientX and clientY must changed.

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

Successfully merging this pull request may close these issues.

1 participant