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
1 changed files with 1 additions and 1 deletions

View File

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