three-render-objects 1.40.1 → 1.40.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 1.40.
|
|
1
|
+
// Version 1.40.2 three-render-objects - https://github.com/vasturiano/three-render-objects
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('three')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['three'], factory) :
|
|
@@ -101158,6 +101158,8 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
101158
101158
|
|
|
101159
101159
|
// Handle click events on objs
|
|
101160
101160
|
state.container.addEventListener('pointerup', function (ev) {
|
|
101161
|
+
if (!state.isPointerPressed) return; // don't trigger click events if pointer is not pressed on the canvas
|
|
101162
|
+
|
|
101161
101163
|
state.isPointerPressed = false;
|
|
101162
101164
|
if (state.isPointerDragging) {
|
|
101163
101165
|
state.isPointerDragging = false;
|