Skip to content

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