|
|
@ -164,6 +164,10 @@ Core.prototype._create = function (container) { |
|
|
|
me.emit('release', event); |
|
|
|
}.bind(this)); |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {WheelEvent} event |
|
|
|
*/ |
|
|
|
function onMouseWheel(event) { |
|
|
|
if (this.isActive()) { |
|
|
|
this.emit('mousewheel', event); |
|
|
@ -222,7 +226,7 @@ Core.prototype._create = function (container) { |
|
|
|
animation: false, |
|
|
|
byUser: true, |
|
|
|
event: event |
|
|
|
} |
|
|
|
}; |
|
|
|
this.range.setRange(newStart, newEnd, options); |
|
|
|
} |
|
|
|
} |
|
|
@ -237,6 +241,10 @@ Core.prototype._create = function (container) { |
|
|
|
this.dom.centerContainer.attachEvent("onmousewheel", onMouseWheel.bind(this)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {scroll} event |
|
|
|
*/ |
|
|
|
function onMouseScrollSide(event) { |
|
|
|
if (!me.options.verticalScroll) return; |
|
|
|
event.preventDefault(); |
|
|
@ -253,6 +261,11 @@ Core.prototype._create = function (container) { |
|
|
|
|
|
|
|
var itemAddedToTimeline = false; |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {dragover} event |
|
|
|
* @returns {boolean} |
|
|
|
*/ |
|
|
|
function handleDragOver(event) { |
|
|
|
if (event.preventDefault) { |
|
|
|
event.preventDefault(); // Necessary. Allows us to drop.
|
|
|
@ -269,6 +282,11 @@ Core.prototype._create = function (container) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {drop} event |
|
|
|
* @returns {boolean} |
|
|
|
*/ |
|
|
|
function handleDrop(event) { |
|
|
|
// prevent redirect to blank page - Firefox
|
|
|
|
if(event.preventDefault) { event.preventDefault(); } |
|
|
@ -1035,7 +1053,7 @@ Core.prototype._setDOM = function () { |
|
|
|
dom.center.style.left = '0'; |
|
|
|
dom.left.style.left = '0'; |
|
|
|
dom.right.style.left = '0'; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
// TODO: deprecated since version 1.1.0, remove some day
|
|
|
|
Core.prototype.repaint = function () { |
|
|
|