three-render-objects
Advanced tools
Comparing version 1.26.1 to 1.26.2
@@ -486,5 +486,5 @@ 'use strict'; | ||
!state.isPointerDragging && ev.type === 'pointermove' && (ev.pressure > 0 || state.isPointerPressed) // ev.pressure always 0 on Safari, so we used the isPointerPressed tracker | ||
&& [ev.movementX, ev.movementY].some(function (m) { | ||
return Math.abs(m) >= (ev.pointerType === 'touch' ? 1 : 0); | ||
}) // relax drag trigger sensitivity on touch events | ||
&& (ev.pointerType !== 'touch' || ev.movementX === undefined || [ev.movementX, ev.movementY].some(function (m) { | ||
return Math.abs(m) > 1; | ||
})) // relax drag trigger sensitivity on touch events | ||
&& (state.isPointerDragging = true); | ||
@@ -491,0 +491,0 @@ |
@@ -478,5 +478,5 @@ import { WebGLRenderer, Scene, PerspectiveCamera, Raycaster, TextureLoader, Vector2, Vector3, Box3, Color, Mesh, SphereGeometry, MeshBasicMaterial, BackSide, EventDispatcher, MOUSE, Quaternion, Spherical, Clock } from 'three'; | ||
!state.isPointerDragging && ev.type === 'pointermove' && (ev.pressure > 0 || state.isPointerPressed) // ev.pressure always 0 on Safari, so we used the isPointerPressed tracker | ||
&& [ev.movementX, ev.movementY].some(function (m) { | ||
return Math.abs(m) >= (ev.pointerType === 'touch' ? 1 : 0); | ||
}) // relax drag trigger sensitivity on touch events | ||
&& (ev.pointerType !== 'touch' || ev.movementX === undefined || [ev.movementX, ev.movementY].some(function (m) { | ||
return Math.abs(m) > 1; | ||
})) // relax drag trigger sensitivity on touch events | ||
&& (state.isPointerDragging = true); | ||
@@ -483,0 +483,0 @@ |
{ | ||
"name": "three-render-objects", | ||
"version": "1.26.1", | ||
"version": "1.26.2", | ||
"description": "Easy way to render ThreeJS objects with built-in interaction defaults", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
723329
0