@woosh/meep-engine 2.39.42 → 2.39.43
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.
|
@@ -271,9 +271,14 @@ export class BlenderCameraOrientationGizmo extends CanvasView {
|
|
|
271
271
|
*/
|
|
272
272
|
_setPointerPositionFromEvent(evt) {
|
|
273
273
|
const v2 = new Vector2();
|
|
274
|
+
|
|
274
275
|
readPositionFromMouseEvent(v2, evt);
|
|
275
276
|
|
|
277
|
+
const position_changed = (this.input_pointer_position === null || this.input_pointer_position.x !== v2.x || this.input_pointer_position.y !== v2.y);
|
|
278
|
+
|
|
276
279
|
this.input_pointer_position = new Vector3(v2.x, v2.y, 0);
|
|
280
|
+
|
|
281
|
+
return position_changed;
|
|
277
282
|
}
|
|
278
283
|
|
|
279
284
|
/**
|
|
@@ -289,6 +294,12 @@ export class BlenderCameraOrientationGizmo extends CanvasView {
|
|
|
289
294
|
* @param {MouseEvent} evt
|
|
290
295
|
*/
|
|
291
296
|
onMouseClick(evt) {
|
|
297
|
+
|
|
298
|
+
if (this._setPointerPositionFromEvent(evt)) {
|
|
299
|
+
// positions do not match, force update
|
|
300
|
+
this.update();
|
|
301
|
+
}
|
|
302
|
+
|
|
292
303
|
if (this.selectedAxis !== null) {
|
|
293
304
|
this.on.axisSelected.send2(
|
|
294
305
|
this.selectedAxis.axis,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"productName": "Meep",
|
|
6
6
|
"description": "production-ready JavaScript game engine based on Entity Component System Architecture",
|
|
7
7
|
"author": "Alexander Goldring",
|
|
8
|
-
"version": "2.39.
|
|
8
|
+
"version": "2.39.43",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"gl-matrix": "3.4.3",
|
|
11
11
|
"fast-levenshtein": "2.0.6",
|