Fix linting

This commit is contained in:
Nick O'Leary 2024-09-16 16:45:22 +01:00
parent aa74d8160a
commit 83b30f1c18
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1210,10 +1210,9 @@ RED.view = (function() {
} }
if (d3.event.touches || d3.event.button === 0) { if (d3.event.touches || d3.event.button === 0) {
if ( if (
(mouse_mode === 0 && isControlPressed(d3.event) && !(d3.event.altKey || d3.event.shiftKey)) (mouse_mode === 0 && isControlPressed(d3.event) && !(d3.event.altKey || d3.event.shiftKey)) ||
|| mouse_mode === RED.state.QUICK_JOINING
mouse_mode === RED.state.QUICK_JOINING ) {
) {
// Trigger quick add dialog // Trigger quick add dialog
d3.event.stopPropagation(); d3.event.stopPropagation();
clearSelection(); clearSelection();