|
@ -506,7 +506,12 @@ exports._handleTap = function(pointer) { |
|
|
this._unselectAll(); |
|
|
this._unselectAll(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.emit("click", this.getSelection()); |
|
|
|
|
|
|
|
|
var properties = this.getSelection(); |
|
|
|
|
|
properties['pointer'] = { |
|
|
|
|
|
DOM: {x: pointer.x, y: pointer.y}, |
|
|
|
|
|
canvas: {x: this._XconvertDOMtoCanvas(pointer.x), y: this._YconvertDOMtoCanvas(pointer.y)} |
|
|
|
|
|
} |
|
|
|
|
|
this.emit("click", properties); |
|
|
this._redraw(); |
|
|
this._redraw(); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -525,7 +530,12 @@ exports._handleDoubleTap = function(pointer) { |
|
|
"y" : this._YconvertDOMtoCanvas(pointer.y)}; |
|
|
"y" : this._YconvertDOMtoCanvas(pointer.y)}; |
|
|
this.openCluster(node); |
|
|
this.openCluster(node); |
|
|
} |
|
|
} |
|
|
this.emit("doubleClick", this.getSelection()); |
|
|
|
|
|
|
|
|
var properties = this.getSelection(); |
|
|
|
|
|
properties['pointer'] = { |
|
|
|
|
|
DOM: {x: pointer.x, y: pointer.y}, |
|
|
|
|
|
canvas: {x: this._XconvertDOMtoCanvas(pointer.x), y: this._YconvertDOMtoCanvas(pointer.y)} |
|
|
|
|
|
} |
|
|
|
|
|
this.emit("doubleClick", properties); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|