Skip to content

fix(renderwindowinteractor): do not trigger mouse press event for the… - #3635

Merged
finetjul merged 2 commits into
Kitware:masterfrom
finetjul:no-press-event-for-first-press
Sep 8, 2026
Merged

fix(renderwindowinteractor): do not trigger mouse press event for the…#3635
finetjul merged 2 commits into
Kitware:masterfrom
finetjul:no-press-event-for-first-press

Conversation

@finetjul

@finetjul finetjul commented Sep 7, 2026

Copy link
Copy Markdown
Member

… first mouse down button

The RWI may not catch a mouse press event (e.g. because it was caught by a div over the RW), in that case the "chorded event" must not apply and moving the mouse over the RW must not trigger a mouse down event

Context

If you add a slider over the RW, a click and drag on the slider may trigger some mouse move events on the RW if the mouse moves outside the slider. Currently, due to the chorded event mechanism, the first mouse move event was triggering a mouse press event that was then enabling the interactor style to rotate the camera while the slider was being interacted with.

Results

The interactor style interaction use case described above no longer happens because the mouse press event is no longer triggered.

Changes

The chorded event mechanism is not applied for the "first" button(s), only when there is at least one button down.

PR Checklist

  • GitHub Actions CI passed: semantic-release commit messages, lint, and tests
  • Test coverage added
  • Documentation and TypeScript definitions are updated to match these changes

@finetjul
finetjul force-pushed the no-press-event-for-first-press branch 2 times, most recently from 7ec4e85 to acb8c08 Compare September 8, 2026 07:34

@Thibault-Pelletier Thibault-Pelletier left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

… first mouse down button

The RWI may not catch a mouse press event (e.g. because it was caught by a div over the RW), in that
case the "chorded event" must not apply and moving the mouse over the RW must not trigger a mouse
down event
@finetjul
finetjul force-pushed the no-press-event-for-first-press branch from acb8c08 to 0ec7623 Compare September 8, 2026 10:14
@finetjul
finetjul added this pull request to the merge queue Sep 8, 2026
Merged via the queue into Kitware:master with commit 267fccf Sep 8, 2026
3 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 36.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released Automated label label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Automated label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants