-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 5527: prevent double annotations on touchscreen marking tasks (#5528
) * Check for PointerEvent before assigning event handlers * Revert changes to e.preventDefault * Update Draggable Tests to accommodate window.PointerEvent existing, or not existing * Add tests for pointer support (#5529) * Add tests for pointer support Split testDrag() into testDragEnabled() and testDragDisabled() then add tests for drag with and without pointer event support. * Beef up tests Remove global variables that accidentally share values across tests. Test drag and end when events are disabled. * Add a usePointer prop for tests Add a usePointer prop, which defaults to !!window.PointerEvent in the browser.
- Loading branch information
1 parent
5de8c99
commit e55e021
Showing
2 changed files
with
159 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters