Skip to content

Commit 3ac7f3a

Browse files
authored
Update EnvironmentControls.js
1 parent 5c19a4d commit 3ac7f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/three/controls/EnvironmentControls.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ export class EnvironmentControls extends EventDispatcher {
308308
pointerTracker.getStartCenterPoint( _startCenterPoint );
309309

310310
// adjust the drag requirement by the dpr
311-
const dpr = window.devicePixelRatio;
311+
const dragThreshold = 2.0 * window.devicePixelRatio;
312312
const parallelDelta = _centerPoint.distanceTo( _startCenterPoint );
313-
if ( Math.abs( separateDelta ) > dpr || parallelDelta > dpr ) {
313+
if ( Math.abs( separateDelta ) > dragThreshold || parallelDelta > dragThreshold ) {
314314

315315
if ( Math.abs( separateDelta ) > parallelDelta ) {
316316

0 commit comments

Comments
 (0)