Skip to content

Commit

Permalink
Default holdDelay to 100ms
Browse files Browse the repository at this point in the history
  • Loading branch information
houtan-rocky committed Apr 23, 2024
1 parent 6377d81 commit e5dca87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export type DragOptions = {
* Time in milliseconds a user must hold before dragging starts.
* This can help prevent accidental drags.
*
* @default 0ms
* @default 100ms
*/
holdDelay?: number;
};
Expand Down Expand Up @@ -275,7 +275,7 @@ export const draggable = (node: HTMLElement, options: DragOptions = {}) => {
onDragStart,
onDrag,
onDragEnd,
holdDelay = 0,
holdDelay = 100,
} = options;

let active = false;
Expand Down

0 comments on commit e5dca87

Please sign in to comment.