Skip to content

Commit

Permalink
Update EnvironmentControls.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson authored May 17, 2024
1 parent 5c19a4d commit 3ac7f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/three/controls/EnvironmentControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ export class EnvironmentControls extends EventDispatcher {
pointerTracker.getStartCenterPoint( _startCenterPoint );

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

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

Expand Down

0 comments on commit 3ac7f3a

Please sign in to comment.