draggable/scripts/test/helpers/constants.js
Randy Morgan 052744eb51 chore(test_helpers): enable DRAG_DELAY for tests and complete event defaults
- 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
2020-06-29 16:50:24 +09:00

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;