1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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
This commit is contained in:
Nick O'Leary 2018-09-14 11:09:56 +01:00
parent 75e7c0e50d
commit 17a737ca88
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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;