Skip to content

feat: expose pointerType in ResizeEvent#880

Merged
tomkp merged 1 commit intomasterfrom
feature/pointer-type
Feb 19, 2026
Merged

feat: expose pointerType in ResizeEvent#880
tomkp merged 1 commit intomasterfrom
feature/pointer-type

Conversation

@tomkp
Copy link
Owner

@tomkp tomkp commented Feb 19, 2026

Summary

Exposes event.pointerType in the ResizeEvent callback, allowing consumers to differentiate between mouse, touch, and pen input.

Suggested by @delijah in #878.

Changes

  • Added pointerType?: 'mouse' | 'touch' | 'pen' to ResizeEvent interface
  • Pass pointerType through onResizeStart, onResize, and onResizeEnd callbacks
  • Updated tests

Usage

<SplitPane
  onResizeStart={(event) => {
    console.log(event.pointerType); // 'mouse', 'touch', or 'pen'
  }}
>

Test Plan

  • Tests for mouse pointerType
  • Tests for touch pointerType
  • Tests for pen pointerType
  • All existing tests pass
  • TypeScript types updated

- Add pointerType field to ResizeEvent ('mouse' | 'touch' | 'pen')
- Pass pointerType through onResizeStart, onResize, and onResizeEnd callbacks
- Allows consumers to differentiate between input types
@tomkp tomkp merged commit 4033c19 into master Feb 19, 2026
1 check passed
@tomkp tomkp deleted the feature/pointer-type branch February 19, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant