Skip to content

Commit 6ad7cc4

Browse files
feat(ui): decrease delay on dnd to 150ms (#3522)
2 parents d54168b + c506355 commit 6ad7cc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/frontend/web/src/app/components/ImageDnd/ImageDndContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ const ImageDndContext = (props: ImageDndContextProps) => {
4040
);
4141

4242
const mouseSensor = useSensor(MouseSensor, {
43-
activationConstraint: { delay: 250, tolerance: 5 },
43+
activationConstraint: { delay: 150, tolerance: 5 },
4444
});
4545

4646
const touchSensor = useSensor(TouchSensor, {
47-
activationConstraint: { delay: 250, tolerance: 5 },
47+
activationConstraint: { delay: 150, tolerance: 5 },
4848
});
4949
// TODO: Use KeyboardSensor - needs composition of multiple collisionDetection algos
5050
// Alternatively, fix `rectIntersection` collection detection to work with the drag overlay

0 commit comments

Comments
 (0)