Skip to content

Commit 3b56437

Browse files
committed
Fix - for mouse rect zooming use only left mouse button
1 parent 947ce06 commit 3b56437

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Changes in 4.4.x
44
1. Fix - toggling of statbox was not working in all situations
5+
2. Fix - for mouse rect zooming use only left mouse button
56

67

78
## Changes in 4.4.3

scripts/JSRootPainter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5071,6 +5071,9 @@
50715071

50725072
if (this.zoom_kind > 100) return;
50735073

5074+
// ignore all events from non-left button
5075+
if ((d3.event.which || d3.event.button) !== 1) return;
5076+
50745077
d3.event.preventDefault();
50755078

50765079
this.clearInteractiveElements();

0 commit comments

Comments
 (0)