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

Move eventListeners from document to source #7

Open
rybakovanton-metta opened this issue Jun 12, 2022 · 0 comments
Open

Move eventListeners from document to source #7

rybakovanton-metta opened this issue Jun 12, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@rybakovanton-metta
Copy link
Owner

`In addRuntimeEvents you add the move, up and cancel listeners to document.

I've an external function that prevents scrolling on certain condition to avoid scroll on an external container while the internal does some particular action.
Basically if the scroll happens in the internal container scroll is prevented.
The funcion is registered on the same DOM element you manage.
By doing this, you never receive touchmove events.`

this -> By registering move on the sourceEl you still have events managed by you and developers are able to prevent the event somewhere along the chain between the managed DOM element and document.

chrisbateman#47 (comment)

@rybakovanton-metta rybakovanton-metta added the enhancement New feature or request label Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant