|
@ -204,9 +204,12 @@ Core.prototype._create = function (container) { |
|
|
deltaX = event.deltaX; |
|
|
deltaX = event.deltaX; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// prevent scrolling when zoomKey defined or activated
|
|
|
|
|
|
|
|
|
// Prevent scrolling when zooming (no zoom key, or pressing zoom key)
|
|
|
if (!this.options.zoomKey || event[this.options.zoomKey]) return; |
|
|
if (!this.options.zoomKey || event[this.options.zoomKey]) return; |
|
|
|
|
|
|
|
|
|
|
|
// Don't preventDefault if you can't scroll
|
|
|
|
|
|
if (!this.options.verticalScroll && !this.options.horizontalScroll) return; |
|
|
|
|
|
|
|
|
// Prevent default actions caused by mouse wheel
|
|
|
// Prevent default actions caused by mouse wheel
|
|
|
// (else the page and timeline both scroll)
|
|
|
// (else the page and timeline both scroll)
|
|
|
event.preventDefault(); |
|
|
event.preventDefault(); |
|
|