Skip to content

Conversation

@ahaensler
Copy link
Contributor

Description

I tried to disable the middle mouse button in DragControls.

dragControls.mouseButtons.MIDDLE = null;

While objects cannot be dragged as expected, the event dragstart is still fired and the mouse cursor changes as if dragging was enabled.

Try it in this fiddle
https://jsfiddle.net/qbsyrh1w/

The PR proposes a fix that doesn't emit events when the action is disabled.

@Mugen87 Mugen87 added this to the r180 milestone Aug 9, 2025
@Mugen87 Mugen87 changed the title DragControls: fix spurios events when actions are disabled DragControls: Fix firing events when actions are disabled. Aug 9, 2025
@Mugen87 Mugen87 merged commit 07987ea into mrdoob:dev Aug 9, 2025
8 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.

2 participants