@cornerstonejs/tools 0.61.9 → 0.61.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "0.61.9",
3
+ "version": "0.61.10",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "main": "dist/umd/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -52,5 +52,5 @@
52
52
  "type": "individual",
53
53
  "url": "https://ohif.org/donate"
54
54
  },
55
- "gitHead": "d0aedd7f51d2f9e8a5cda8411862190b1cbda90f"
55
+ "gitHead": "b373fe93e26607632d50befa270f23f9deb92abc"
56
56
  }
@@ -130,9 +130,11 @@ function mouseDownListener(evt: MouseEvent) {
130
130
  return;
131
131
  }
132
132
 
133
+ // Only left single button click can be doubled up, so fire immediately
134
+ // on anything except left double click.
133
135
  doubleClickState.doubleClickTimeout = setTimeout(
134
136
  _doStateMouseDownAndUp,
135
- DOUBLE_CLICK_TOLERANCE_MS
137
+ evt.button === 1 ? DOUBLE_CLICK_TOLERANCE_MS : 0
136
138
  );
137
139
 
138
140
  // First mouse down of a potential double click. So save it and start