From 0f2e3d4d495f130bb1e434cd5422e3706d70aece Mon Sep 17 00:00:00 2001 From: "Alaric.Baraou" Date: Thu, 29 Feb 2024 16:08:14 +0900 Subject: [PATCH] dispatchEvent in wheelCallback (#494) --- src/three/controls/EnvironmentControls.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/three/controls/EnvironmentControls.js b/src/three/controls/EnvironmentControls.js index 5cfad538a..2f913ba54 100644 --- a/src/three/controls/EnvironmentControls.js +++ b/src/three/controls/EnvironmentControls.js @@ -369,6 +369,8 @@ export class EnvironmentControls extends EventDispatcher { e.preventDefault(); + this.dispatchEvent( _startEvent ); + let delta; switch ( e.deltaMode ) { @@ -390,6 +392,8 @@ export class EnvironmentControls extends EventDispatcher { this.zoomDelta -= 3 * deltaSign * normalizedDelta; this.needsUpdate = true; + this.dispatchEvent( _endEvent ); + }; const pointerenterCallback = e => {