JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

[Bug]: Viewport scrolling and drag'n'drop should not happen together on iOS

Open sigmate opened this issue 1 year ago • 0 comments

Detailed steps on how to reproduce the bug

On iOS (and presumably Android), when using a component that relies on a Viewport (in my case a TableListBox) and if a drag'n'drop gesture is performed, both the component and its underlying viewport will react to gesture, meaning the selected item will be dragged, but the viewport will also scroll.

bfdc18b3b3850de74dc317b00651b1e1474cc7be

What is the expected behaviour?

On touch devices, I suppose there should be additional logic to handle gestures depending on wether some items are selected or not and where the gesture originates. Like:

Drag gesture starts
  If gesture start point is not inside an already selected item then
    Scroll viewport
  Else
    Begin item dragging

Operating systems

iOS

What versions of the operating systems?

16.6.1

Architectures

ARM

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • [X] I agree to follow the Code of Conduct

sigmate avatar Sep 18 '23 08:09 sigmate