|
@ -347,7 +347,7 @@ Range.prototype._onMouseWheel = function(event) { |
|
|
|
|
|
|
|
|
// calculate center, the date to zoom around
|
|
|
// calculate center, the date to zoom around
|
|
|
var gesture = util.fakeGesture(this, event), |
|
|
var gesture = util.fakeGesture(this, event), |
|
|
pointer = getPointer(gesture.center, this.timeline.dom.root), |
|
|
|
|
|
|
|
|
pointer = getPointer(gesture.center, this.timeline.dom.center), |
|
|
pointerDate = this._pointerToDate(pointer); |
|
|
pointerDate = this._pointerToDate(pointer); |
|
|
|
|
|
|
|
|
this.zoom(scale, pointerDate); |
|
|
this.zoom(scale, pointerDate); |
|
@ -396,7 +396,7 @@ Range.prototype._onPinch = function (event) { |
|
|
|
|
|
|
|
|
if (event.gesture.touches.length > 1) { |
|
|
if (event.gesture.touches.length > 1) { |
|
|
if (!touchParams.center) { |
|
|
if (!touchParams.center) { |
|
|
touchParams.center = getPointer(event.gesture.center, this.timeline.dom.root); |
|
|
|
|
|
|
|
|
touchParams.center = getPointer(event.gesture.center, this.timeline.dom.center); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var scale = 1 / event.gesture.scale, |
|
|
var scale = 1 / event.gesture.scale, |
|
|