From 17a737ca889d58366eebea6e66dfb6596b1d32c5 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 14 Sep 2018 11:09:56 +0100 Subject: [PATCH] Fix dbl-click handling on webkit-based browsers d3.event.buttons is not as widely supported as I thought. Can change this one instance as it is inside a click handler so d3.event.button will be defined instead --- editor/js/ui/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/js/ui/view.js b/editor/js/ui/view.js index 4688c15cd..f3928351f 100644 --- a/editor/js/ui/view.js +++ b/editor/js/ui/view.js @@ -1766,7 +1766,7 @@ RED.view = (function() { clickTime = now; dblClickPrimed = (lastClickNode == mousedown_node && - d3.event.buttons === 1 && + d3.event.button === 0 && !d3.event.shiftKey && !d3.event.metaKey && !d3.event.altKey && !d3.event.ctrlKey); lastClickNode = mousedown_node;