|
@ -288,6 +288,8 @@ Range.prototype._onDragStart = function(event, component) { |
|
|
// when releasing the fingers in opposite order from the touch screen
|
|
|
// when releasing the fingers in opposite order from the touch screen
|
|
|
if (touchParams.ignore) return; |
|
|
if (touchParams.ignore) return; |
|
|
|
|
|
|
|
|
|
|
|
// TODO: reckon with option movable
|
|
|
|
|
|
|
|
|
touchParams.start = this.start; |
|
|
touchParams.start = this.start; |
|
|
touchParams.end = this.end; |
|
|
touchParams.end = this.end; |
|
|
|
|
|
|
|
@ -307,6 +309,9 @@ Range.prototype._onDragStart = function(event, component) { |
|
|
Range.prototype._onDrag = function (event, component, direction) { |
|
|
Range.prototype._onDrag = function (event, component, direction) { |
|
|
validateDirection(direction); |
|
|
validateDirection(direction); |
|
|
|
|
|
|
|
|
|
|
|
// TODO: reckon with option movable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// refuse to drag when we where pinching to prevent the timeline make a jump
|
|
|
// refuse to drag when we where pinching to prevent the timeline make a jump
|
|
|
// when releasing the fingers in opposite order from the touch screen
|
|
|
// when releasing the fingers in opposite order from the touch screen
|
|
|
if (touchParams.ignore) return; |
|
|
if (touchParams.ignore) return; |
|
@ -335,6 +340,8 @@ Range.prototype._onDragEnd = function (event, component) { |
|
|
// when releasing the fingers in opposite order from the touch screen
|
|
|
// when releasing the fingers in opposite order from the touch screen
|
|
|
if (touchParams.ignore) return; |
|
|
if (touchParams.ignore) return; |
|
|
|
|
|
|
|
|
|
|
|
// TODO: reckon with option movable
|
|
|
|
|
|
|
|
|
if (component.frame) { |
|
|
if (component.frame) { |
|
|
component.frame.style.cursor = 'auto'; |
|
|
component.frame.style.cursor = 'auto'; |
|
|
} |
|
|
} |
|
@ -357,6 +364,8 @@ Range.prototype._onDragEnd = function (event, component) { |
|
|
Range.prototype._onMouseWheel = function(event, component, direction) { |
|
|
Range.prototype._onMouseWheel = function(event, component, direction) { |
|
|
validateDirection(direction); |
|
|
validateDirection(direction); |
|
|
|
|
|
|
|
|
|
|
|
// TODO: reckon with option zoomable
|
|
|
|
|
|
|
|
|
// retrieve delta
|
|
|
// retrieve delta
|
|
|
var delta = 0; |
|
|
var delta = 0; |
|
|
if (event.wheelDelta) { /* IE/Opera. */ |
|
|
if (event.wheelDelta) { /* IE/Opera. */ |
|
@ -432,6 +441,8 @@ Range.prototype._onHold = function () { |
|
|
Range.prototype._onPinch = function (event, component, direction) { |
|
|
Range.prototype._onPinch = function (event, component, direction) { |
|
|
touchParams.ignore = true; |
|
|
touchParams.ignore = true; |
|
|
|
|
|
|
|
|
|
|
|
// TODO: reckon with option zoomable
|
|
|
|
|
|
|
|
|
if (event.gesture.touches.length > 1) { |
|
|
if (event.gesture.touches.length > 1) { |
|
|
if (!touchParams.center) { |
|
|
if (!touchParams.center) { |
|
|
touchParams.center = getPointer(event.gesture.center, component.frame); |
|
|
touchParams.center = getPointer(event.gesture.center, component.frame); |
|
|