|
@ -603,7 +603,7 @@ Graph.prototype._onMouseWheel = function(event) { |
|
|
scale *= (1 + zoom); |
|
|
scale *= (1 + zoom); |
|
|
|
|
|
|
|
|
// calculate the pointer location
|
|
|
// calculate the pointer location
|
|
|
var gesture = Hammer.event.collectEventData(this, 'scroll', event); |
|
|
|
|
|
|
|
|
var gesture = util.fakeGesture(this, event); |
|
|
var pointer = this._getPointer(gesture.center); |
|
|
var pointer = this._getPointer(gesture.center); |
|
|
|
|
|
|
|
|
// apply the new scale
|
|
|
// apply the new scale
|
|
@ -624,7 +624,7 @@ Graph.prototype._onMouseWheel = function(event) { |
|
|
* @private |
|
|
* @private |
|
|
*/ |
|
|
*/ |
|
|
Graph.prototype._onMouseMoveTitle = function (event) { |
|
|
Graph.prototype._onMouseMoveTitle = function (event) { |
|
|
var gesture = Hammer.event.collectEventData(this, 'mousemove', event); |
|
|
|
|
|
|
|
|
var gesture = util.fakeGesture(this, event); |
|
|
var pointer = this._getPointer(gesture.center); |
|
|
var pointer = this._getPointer(gesture.center); |
|
|
|
|
|
|
|
|
// check if the previously selected node is still selected
|
|
|
// check if the previously selected node is still selected
|
|
|