Skip to content

Commit 0a4bb0d

Browse files
Alex VinoberAlex Vinober
Alex Vinober
authored and
Alex Vinober
committed
Check if not a left-click, then bail out of onStart
1 parent c3f0a18 commit 0a4bb0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/dragelement/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ dragElement.init = function init(options) {
7878
element.ontouchstart = onStart;
7979

8080
function onStart(e) {
81+
if(e.button && e.button === 2) { // right click
82+
return;
83+
}
84+
8185
// make dragging and dragged into properties of gd
8286
// so that others can look at and modify them
8387
gd._dragged = false;

0 commit comments

Comments
 (0)