interact.js icon indicating copy to clipboard operation
interact.js copied to clipboard

Make it easier to start actions depending on the number and type of pointers

Open taye opened this issue 5 years ago • 1 comments

Expected behavior

https://gitter.im/taye/interact.js?at=5e302e9a433e1d403969e930

Hello :) I want, that a draggable needs either one mouse event or two touch events to be draggable. The event passed by the draggable move handler doesn’t seem to have a variable “touches”, or any other way to differentiate between touch and mouse. Is there a way to solve that? The reason: On mobile one finger should be free to scroll around the page, and two finger should trigger the movement. Similar to the google maps plugin.

It should be possible to disable dragging when only one pointer is down so that the page can be panned with a single finger, and start dragging if 2 fingers go down together.

Actual behavior

Only gesturable actions can have two pointers.

System configuration

interact.js version: 1.8.4

taye avatar Feb 16 '20 14:02 taye

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 01 '20 14:03 stale[bot]