1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-16 10:04:45 +02:00

Updating the dist

This commit is contained in:
Antonio Laguna
2017-02-28 11:12:54 +01:00
parent d03e0cad41
commit 5c4d2f8769
2 changed files with 4 additions and 3 deletions

View File

@@ -1418,11 +1418,12 @@ var Scroll = function () {
wheelDeltaX = event.deltaX;
var isVertical = this.ws_.isVertical;
var isHorizontalMovement = Math.abs(wheelDeltaX) > Math.abs(wheelDeltaY);
this.isGoingUp_ = wheelDeltaY < 0;
this.isGoingLeft_ = wheelDeltaX < 0;
// If we're mainly moving horizontally, prevent default
if (Math.abs(wheelDeltaX) > Math.abs(wheelDeltaY)) {
if (isHorizontalMovement) {
if (!isVertical) {
event.preventDefault();
} else {
@@ -1433,7 +1434,7 @@ var Scroll = function () {
}
if (Math.abs(wheelDeltaY) >= MIN_WHEEL_DELTA || Math.abs(wheelDeltaX) >= MIN_WHEEL_DELTA) {
if (isVertical && this.isGoingUp_ || !isVertical && this.isGoingLeft_) {
if (isHorizontalMovement && this.isGoingLeft_ || !isHorizontalMovement && this.isGoingUp_) {
this.ws_.goPrev();
} else {
this.ws_.goNext();

File diff suppressed because one or more lines are too long