Commit f32a73f
committed
H5 Safari fix delay when dropping
fix for #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...1 parent aaa167c commit f32a73f
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
| |||
0 commit comments