Skip to content

Commit

Permalink
feat(controls): disabled multi actions when zooming
Browse files Browse the repository at this point in the history
BREAKING CHANGE: disabled multi actions when zooming
  • Loading branch information
AnthonyGlt committed Oct 11, 2024
1 parent 85ce178 commit 89bbbd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Controls/StateControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ class StateControl extends THREE.EventDispatcher {

if (this.enabled && this.ZOOM.enable) {
viewCoords.copy(this._view.eventToViewCoords(event));
this.currentState = this.NONE;
this.dispatchEvent({ type: this.ZOOM._event, delta: event.deltaY, viewCoords });
}
}
Expand Down

0 comments on commit 89bbbd8

Please sign in to comment.