1
0
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:
Nick O'Leary 2014-05-11 13:57:54 +01:00
parent 7e85eb297d
commit bf49485d4c

View File

@ -668,7 +668,7 @@ RED.view = function() {
function portMouseUp(d,portType,portIndex) { function portMouseUp(d,portType,portIndex) {
document.body.style.cursor = ""; document.body.style.cursor = "";
if (mouse_mode == RED.state.JOINING && mousedown_node) { 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) { RED.nodes.eachNode(function(n) {
if (n.z == activeWorkspace) { if (n.z == activeWorkspace) {
var hw = n.w/2; var hw = n.w/2;