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