Replies: 1 comment 2 replies
-
Hard to tell without seeing code, but add it to the draggable element via CSS properties to the element you apply the import {useDraggable} from '@dnd-kit/core';
function Draggable() {
const {attributes, listeners, setNodeRef} = useDraggable({
id: 'unique-id',
});
const styles = {
touchAction: "none",
};
return (
<div ref={setNodeRef}>
/* Some other content that does not activate dragging */
<button style={styles} {...listeners} {...attributes}>Drag handle</button>
</div>
);
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions