We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c19a4d commit 3ac7f3aCopy full SHA for 3ac7f3a
src/three/controls/EnvironmentControls.js
@@ -308,9 +308,9 @@ export class EnvironmentControls extends EventDispatcher {
308
pointerTracker.getStartCenterPoint( _startCenterPoint );
309
310
// adjust the drag requirement by the dpr
311
- const dpr = window.devicePixelRatio;
+ const dragThreshold = 2.0 * window.devicePixelRatio;
312
const parallelDelta = _centerPoint.distanceTo( _startCenterPoint );
313
- if ( Math.abs( separateDelta ) > dpr || parallelDelta > dpr ) {
+ if ( Math.abs( separateDelta ) > dragThreshold || parallelDelta > dragThreshold ) {
314
315
if ( Math.abs( separateDelta ) > parallelDelta ) {
316
0 commit comments