Skip to content

feat: add option to disable single finger drag #520

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

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

Conversation

Fuzzyma
Copy link

@Fuzzyma Fuzzyma commented Apr 2, 2025

Right now, there is no option to disable dragging when one finger is used only.
This is useful because a lot of apps require to being able to scroll the page in a normal manner.
Having some random canvas-drawing that catches the event and prevents the normal behavior can be quite annoying.
In this case, 2 finger drags are the way to go.

Thats why I added an option "disableTouch" that prevents the drag when only one finger is used.

Maybe I should rename it to "disableOneFingerDrag".
Let me know what you think!

PS: This is only a half solution because pixi still catches all pointer events and prevents scrolling a normal page. Any pointers on how to fix this are welcome

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