mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Handle null TouchEvent (FF/Safari)
This commit is contained in:
parent
7e85eb297d
commit
bf49485d4c
@ -668,7 +668,7 @@ RED.view = function() {
|
||||
function portMouseUp(d,portType,portIndex) {
|
||||
document.body.style.cursor = "";
|
||||
if (mouse_mode == RED.state.JOINING && mousedown_node) {
|
||||
if (d3.event instanceof TouchEvent) {
|
||||
if (typeof TouchEvent != "undefined" && d3.event instanceof TouchEvent) {
|
||||
RED.nodes.eachNode(function(n) {
|
||||
if (n.z == activeWorkspace) {
|
||||
var hw = n.w/2;
|
||||
|
Loading…
Reference in New Issue
Block a user