You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an element within a ScrollView. I'd like to be able to drag and drop this element while also being able to still scroll within the ScrollView - with a different finger. So, pretty much like drag'n'drop works for most iOS apps, for example Apple Reminders.
So far, I've implemented the dragging using a PanGesture activated by a long press.
This blocks scrolling the ScrollView, but I've gotten that back to work using a NativeGesture and PanGesture()[...].simultaneousWithExternalGesture(nativeGesture). However, this now uses the same finger for dragging and scrolling. I'd like to use the finger that does the dragging only for the dragging, and any additional finger for scrolling.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an element within a ScrollView. I'd like to be able to drag and drop this element while also being able to still scroll within the ScrollView - with a different finger. So, pretty much like drag'n'drop works for most iOS apps, for example Apple Reminders.
So far, I've implemented the dragging using a PanGesture activated by a long press.
This blocks scrolling the ScrollView, but I've gotten that back to work using a NativeGesture and
PanGesture()[...].simultaneousWithExternalGesture(nativeGesture)
. However, this now uses the same finger for dragging and scrolling. I'd like to use the finger that does the dragging only for the dragging, and any additional finger for scrolling.How would I go about that?
Beta Was this translation helpful? Give feedback.
All reactions