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 a carousel of items. i am using useDrag on the carousel to facilitate the rotation through a series of these items. Right now the user can click anywhere on the item to drag things around.
I am looking to create certain zones within the item where there is selectable text. right now trying to drag to select causes the drag to fire. i have tried wrapping my text element in a div with onDragonDragStartonDragEnd, and calling e.preventDefault(); e.stopPropagation().. this doesnt currently work.
Does anyone know if theres something on the returned bindDrag or a different set of things to call on the event that could solve what im trying to do?
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 a carousel of items. i am using
useDrag
on the carousel to facilitate the rotation through a series of these items. Right now the user can click anywhere on the item to drag things around.I am looking to create certain zones within the item where there is selectable text. right now trying to drag to select causes the drag to fire. i have tried wrapping my text element in a div with
onDrag
onDragStart
onDragEnd
, and callinge.preventDefault(); e.stopPropagation()
.. this doesnt currently work.Does anyone know if theres something on the returned
bindDrag
or a different set of things to call on the event that could solve what im trying to do?Beta Was this translation helpful? Give feedback.
All reactions