Skip to content

Commit

Permalink
dispatchEvent in wheelCallback (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaricBaraou authored Feb 29, 2024
1 parent 7c8ff6a commit 0f2e3d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/three/controls/EnvironmentControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ export class EnvironmentControls extends EventDispatcher {

e.preventDefault();

this.dispatchEvent( _startEvent );

let delta;
switch ( e.deltaMode ) {

Expand All @@ -390,6 +392,8 @@ export class EnvironmentControls extends EventDispatcher {
this.zoomDelta -= 3 * deltaSign * normalizedDelta;
this.needsUpdate = true;

this.dispatchEvent( _endEvent );

};

const pointerenterCallback = e => {
Expand Down

0 comments on commit 0f2e3d4

Please sign in to comment.