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

[Drag & Drop blocks] Multiple touches are being tracked while dragging a block #4754

Closed
tiagomar opened this issue Apr 13, 2022 · 2 comments
Closed
Assignees
Labels

Comments

@tiagomar
Copy link

Describe the bug
Multiple touches are being tracked while dragging a block making it possible to have dragging direction and speed changes due to unintentional touches.

To Reproduce
Steps to reproduce the behavior:

  1. Start dragging a block;
  2. Using another finger/hand palm
  3. Notice that the chip moves to an intermediate point possibly changing dragging direction and speed.

Expected behavior
Only the first touch should be tracked while dragging a block.

Evidence

drag-and-drop-multitouch.mp4

Smartphone:

  • Device: Android, iPhone, iPad.
@fluiddot
Copy link
Contributor

I think we could tweak the gesture configuration and limit the number of fingers to activate it. Looks like there's a property named maxPointers that could help us to address the issue.

There's another property (averageTouches), only supported in Android, that might be also interesting to check, as it might be related to the case where having two fingers, the touch position is averaged.

@geriux
Copy link
Contributor

geriux commented Apr 27, 2022

Closing since it was fixed in WordPress/gutenberg#40519

@geriux geriux closed this as completed Apr 27, 2022
Repository owner moved this from In Review to Done in Gutenberg Mobile: Drag & Drop blocks feature Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

No branches or pull requests

3 participants