File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,11 @@ export class InputManager
5858 this . viewport . on ( 'pointerup' , this . up , this ) ;
5959 this . viewport . on ( 'pointerupoutside' , this . up , this ) ;
6060 this . viewport . on ( 'pointercancel' , this . up , this ) ;
61- this . viewport . on ( 'pointerleave' , this . pointerLeave , this ) ;
61+ if ( ! this . viewport . options . allowPreserveDragOutside )
62+ {
63+ this . viewport . on ( 'pointerleave' , this . up , this ) ;
64+ }
65+
6266 this . wheelFunction = ( e ) => this . handleWheel ( e ) ;
6367 this . viewport . options . events . domElement . addEventListener (
6468 'wheel' ,
@@ -211,14 +215,6 @@ export class InputManager
211215 }
212216 }
213217
214- public pointerLeave ( event : FederatedPointerEvent )
215- {
216- if ( ! this . viewport . options . allowPreserveDragOutside )
217- {
218- this . up ( event ) ;
219- }
220- }
221-
222218 /** Gets pointer position if this.interaction is set */
223219 public getPointerPosition ( event : WheelEvent ) : Point
224220 {
You can’t perform that action at this time.
0 commit comments