What's New
pointerType in ResizeEvent (#880)
You can now access event.pointerType in resize callbacks to differentiate between mouse, touch, and pen input:
<SplitPane
onResizeStart={(event) => {
console.log(event.pointerType); // 'mouse', 'touch', or 'pen'
}}
onResize={(sizes, event) => {
if (event.pointerType === 'touch') {
// Handle touch-specific logic
}
}}
>Thanks to @delijah for the suggestion!
Full Changelog
- feat: expose pointerType in ResizeEvent (#880)