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
Hey guys! I have added a TouchSensor to my DndContext, but for some reason, on my iPad, my Draggable elements are only activating on Long Press. Any idea why this is? I would like the Drag event to fire with as minimal delay as possible and be highly sensitive.
My TouchSensor is defined here
import { useSensor, useSensors, TouchSensor, DndContext } from "@dnd-kit/core";
const touchSensor = useSensor(TouchSensor, {
// Press delay of 0ms, with tolerance of 5px of movement
activationConstraint: {
delay: 0,
tolerance: 5,
},
});
const sensors = useSensors(touchSensor);
And then I pass the sensors into my DndContext wrapper like so
Hey guys! I have added a TouchSensor to my DndContext, but for some reason, on my iPad, my Draggable elements are only activating on Long Press. Any idea why this is? I would like the Drag event to fire with as minimal delay as possible and be highly sensitive.
My TouchSensor is defined here
And then I pass the sensors into my DndContext wrapper like so
Thanks!
The text was updated successfully, but these errors were encountered: