Skip to content

Allow middle mouse button panning - #1497

Open
Rajkaran-122 wants to merge 1 commit into
GoogleChromeLabs:devfrom
Rajkaran-122:fix/824-middle-mouse-pan
Open

Allow middle mouse button panning#1497
Rajkaran-122 wants to merge 1 commit into
GoogleChromeLabs:devfrom
Rajkaran-122:fix/824-middle-mouse-pan

Conversation

@Rajkaran-122

@Rajkaran-122 Rajkaran-122 commented Aug 23, 2026

Copy link
Copy Markdown

Fixes #824.

Summary

Allow panning the image using the middle mouse button.

Changes

  • Add middle-button mouse handling to the image viewer.
  • Track mouse movement while the middle button is held.
  • Apply the movement to the existing image transform.
  • Clean up mouse listeners when panning ends or the component is disconnected.

Existing left-button and other pointer-based interactions are preserved.

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.

Allow using the middle mouse button to pan the image in addition to the left mouse button

1 participant