Skip to content

fix: support mobile drag gestures - #374

Merged
hunghg255 merged 1 commit into
hunghg255:mainfrom
Found-L:fix/mobile-drag-gestures
Jul 29, 2026
Merged

fix: support mobile drag gestures#374
hunghg255 merged 1 commit into
hunghg255:mainfrom
Found-L:fix/mobile-drag-gestures

Conversation

@Found-L

@Found-L Found-L commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace mouse-only image and GIF resize handling with Pointer Events
  • use pointer capture to keep resizing active when a touch or pointer moves outside the resize handle
  • support touch drag selection in the table size picker while preserving desktop hover behavior
  • prevent browser scrolling from interrupting resize and table selection gestures

Root cause

The image and GIF resize handles only listened for mouse events, and the table size picker relied on mouse hover and mouse down events. These interactions therefore did not work correctly on touch devices.

Video behavior

The current video extension no longer provides drag resize handles. Video width is adjusted through the existing S/M/L controls in the bubble menu, which are already usable on touch devices. This PR keeps that interaction unchanged.

Validation

  • TypeScript type check
  • lint for the modified files
  • formatting check for the modified files
  • library production build
  • playground production build
  • verified compatibility with the latest GIF size persistence changes from PR fix: preserve GIF size after reload #373

Closes #115

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Found-L is attempting to deploy a commit to the Gia Hung's projects Team on Vercel.

A member of the Team first needs to authorize it.

@hunghg255
hunghg255 merged commit 3b109e8 into hunghg255:main Jul 29, 2026
1 of 3 checks passed
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.

[Bug] I can not integrate with editor in mobile web (can not detect drag gesture)

2 participants