Commit c8452c8
authored
feat: replace mouse/touch events with pointer events (#879)
feat: replace mouse/touch events with pointer events (#879)
- Use unified Pointer Events API for all drag interactions (mouse, touch, pen)
- Implement pointer capture for better drag UX (prevents cursor blinking)
- Add pointer ID filtering for multi-touch support
- Simplify useResizer hook by removing separate mouse/touch handlers
- Update DividerProps to use onPointerDown instead of onMouseDown/onTouchStart/onTouchEnd
- Update ResizeEvent source type from 'mouse' | 'touch' to 'pointer'
- Add PointerEvent polyfill for jsdom in test setup
Closes #8781 parent 6200524 commit c8452c8
File tree
6 files changed
+442
-302
lines changed- src
- components
- hooks
- test
- types
6 files changed
+442
-302
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 45 | + | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 107 | + | |
112 | 108 | | |
113 | 109 | | |
114 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
| 276 | + | |
283 | 277 | | |
284 | 278 | | |
285 | 279 | | |
| |||
354 | 348 | | |
355 | 349 | | |
356 | 350 | | |
357 | | - | |
358 | | - | |
359 | | - | |
| 351 | + | |
360 | 352 | | |
361 | 353 | | |
362 | 354 | | |
| |||
0 commit comments