@woosh/meep-engine 2.109.18 → 2.109.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/meep.cjs +3 -3
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +3 -3
- package/package.json +1 -1
- package/src/core/json/abstractJSONSerializer.d.ts +1 -1
- package/src/core/json/abstractJSONSerializer.d.ts.map +1 -1
- package/src/core/json/abstractJSONSerializer.js +32 -6
- package/src/engine/input/devices/PointerDevice.d.ts.map +1 -1
- package/src/engine/input/devices/PointerDevice.js +3 -3
package/build/meep.cjs
CHANGED
|
@@ -91718,7 +91718,7 @@ function observeDrag(up, down, move, dragStart, dragEnd, drag) {
|
|
|
91718
91718
|
/**
|
|
91719
91719
|
*
|
|
91720
91720
|
* @param {Vector2} result
|
|
91721
|
-
* @param {MouseEvent} event
|
|
91721
|
+
* @param {MouseEvent|Touch} event
|
|
91722
91722
|
* @param {Element} source
|
|
91723
91723
|
*/
|
|
91724
91724
|
function readPositionFromMouseEvent(result, event, source = event.target) {
|
|
@@ -91947,7 +91947,7 @@ class PointerDevice {
|
|
|
91947
91947
|
#eventHandlerTouchMove = (event) => {
|
|
91948
91948
|
event.preventDefault();
|
|
91949
91949
|
|
|
91950
|
-
getTouchCenter(event.touches, position);
|
|
91950
|
+
getTouchCenter(event.touches, this.position);
|
|
91951
91951
|
|
|
91952
91952
|
const delta = new Vector2();
|
|
91953
91953
|
|
|
@@ -92044,7 +92044,7 @@ class PointerDevice {
|
|
|
92044
92044
|
/**
|
|
92045
92045
|
*
|
|
92046
92046
|
* @param {Vector2} result
|
|
92047
|
-
* @param {MouseEvent|
|
|
92047
|
+
* @param {MouseEvent|Touch} event
|
|
92048
92048
|
*/
|
|
92049
92049
|
readPointerPositionFromEvent(result, event) {
|
|
92050
92050
|
readPositionFromMouseEvent(result, event, this.domElement);
|