mirror of
https://github.com/Shopify/draggable.git
synced 2025-12-08 20:15:56 +00:00
- configure DRAG_DELAY for tests to the library default of 100ms in order totest delayed dragging. - Ensure Date.now is updated on waitForDragDelay so that time comparisons can be used to test for drag delay constraints
19 lines
251 B
JavaScript
19 lines
251 B
JavaScript
export const defaultTouchEventOptions = {
|
|
touches: [
|
|
{
|
|
pageX: 0,
|
|
pageY: 0,
|
|
},
|
|
],
|
|
};
|
|
|
|
export const defaultMouseEventOptions = {
|
|
button: 0,
|
|
clientX: 0,
|
|
clientY: 0,
|
|
pageX: 0,
|
|
pageY: 0,
|
|
};
|
|
|
|
export const DRAG_DELAY = 100;
|