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

Prevent dragging, if multi-touch occurs.

Open KLA6 opened this issue 4 years ago • 2 comments

Expected behavior

Prevent dragging, if multi-touch occurs. In other words, drag-able by only single-touch. How can I allow .draggable, when the user uses only one finger...?

FYI, at the moment, I've made other event handlers to count touch points, but I'm just curious whether I can make the code simpler within this library.

Actual behavior

I've tried to use .gesturable to figure out single or multi touch, but it seems it always recognize the touches as multi. Also, I've tried to check all values in event of .draggable, but it seems there is no info about the count of touch points.

System configuration

interact.js version: 1.10.11 Browser name and version: Chrome 95.0.4638.54 Operating System: Windows 10

KLA6 avatar Oct 24 '21 20:10 KLA6

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 02 '22 10:03 stale[bot]

Relates to #794

taye avatar Apr 07 '22 13:04 taye