forked from gridstack/gridstack.js
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for gridstack#1541 * on Safari we had a delay due to a 300ms+ animating back to old location on drop. 'dragend' wasn't called (what we use) until that animation was done. to fix that had to call `preventDefault()` during drag https://stackoverflow.com/questions/61760755/how-to-fire-dragend-event-immediately * for that to work I ALSO had to remove `{passive: true}` when adding the drag event, so passing just 'true' for grabing event NOTE: I noticed Safari doesn't auto-scroll the grid (didn't before), but chrome Mac does. html5 drag event is painfully incompatible between browsers...
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 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