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.
@@ -499,6 +499,8 @@ var threeRenderObjects = Kapsule({
499
499
 
500
500
  // Handle click events on objs
501
501
  state.container.addEventListener('pointerup', function (ev) {
502
+ if (!state.isPointerPressed) return; // don't trigger click events if pointer is not pressed on the canvas
503
+
502
504
  state.isPointerPressed = false;
503
505
  if (state.isPointerDragging) {
504
506
  state.isPointerDragging = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-render-objects",
3
- "version": "1.40.1",
3
+ "version": "1.40.2",
4
4
  "description": "Easy way to render ThreeJS objects with built-in interaction defaults",
5
5
  "license": "MIT",
6
6
  "type": "module",