aboutsummaryrefslogtreecommitdiff
path: root/javascript/resizeHandle.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/resizeHandle.js')
-rw-r--r--javascript/resizeHandle.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/javascript/resizeHandle.js b/javascript/resizeHandle.js
index c0c8cbff..2fd3c4d2 100644
--- a/javascript/resizeHandle.js
+++ b/javascript/resizeHandle.js
@@ -66,6 +66,8 @@
parent.insertBefore(resizeHandle, rightCol);
resizeHandle.addEventListener('mousedown', (evt) => {
+ if (evt.button !== 0) return;
+
evt.preventDefault();
evt.stopPropagation();
@@ -91,6 +93,8 @@
}
window.addEventListener('mousemove', (evt) => {
+ if (evt.button !== 0) return;
+
if (R.tracking) {
evt.preventDefault();
evt.stopPropagation();
@@ -102,6 +106,8 @@
});
window.addEventListener('mouseup', (evt) => {
+ if (evt.button !== 0) return;
+
if (R.tracking) {
evt.preventDefault();
evt.stopPropagation();