Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtesaak committed Jul 10, 2018
1 parent 60e8fe7 commit 41603b0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
6 changes: 2 additions & 4 deletions dist/perfect-scrollbar.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,6 @@ var wheel = function(i) {
};

var touch = function(i) {
console.warn("---", env);
if (!env.supportsTouch && !env.supportsIePointer) {
return;
}
Expand Down Expand Up @@ -954,10 +953,11 @@ var touch = function(i) {
}

function touchStart(e) {
console.log(i);
if (!i.settings.swipePropagation) {
console.log("---touchStart stop");
e.stopPropagation();
}

if (!shouldHandle(e)) {
return;
}
Expand Down Expand Up @@ -1020,7 +1020,6 @@ var touch = function(i) {

function touchMove(e) {
if (!i.settings.swipePropagation) {
console.log("---touchMove stop");
e.stopPropagation();
}
if (shouldHandle(e)) {
Expand Down Expand Up @@ -1054,7 +1053,6 @@ var touch = function(i) {
}
function touchEnd(e) {
if (!i.settings.swipePropagation) {
console.log("---touchEnd stop");
e.stopPropagation();
}
if (i.settings.swipeEasing) {
Expand Down
6 changes: 2 additions & 4 deletions dist/perfect-scrollbar.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,6 @@ var wheel = function(i) {
};

var touch = function(i) {
console.warn("---", env);
if (!env.supportsTouch && !env.supportsIePointer) {
return;
}
Expand Down Expand Up @@ -952,10 +951,11 @@ var touch = function(i) {
}

function touchStart(e) {
console.log(i);
if (!i.settings.swipePropagation) {
console.log("---touchStart stop");
e.stopPropagation();
}

if (!shouldHandle(e)) {
return;
}
Expand Down Expand Up @@ -1018,7 +1018,6 @@ var touch = function(i) {

function touchMove(e) {
if (!i.settings.swipePropagation) {
console.log("---touchMove stop");
e.stopPropagation();
}
if (shouldHandle(e)) {
Expand Down Expand Up @@ -1052,7 +1051,6 @@ var touch = function(i) {
}
function touchEnd(e) {
if (!i.settings.swipePropagation) {
console.log("---touchEnd stop");
e.stopPropagation();
}
if (i.settings.swipeEasing) {
Expand Down
6 changes: 2 additions & 4 deletions dist/perfect-scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,6 @@ var wheel = function(i) {
};

var touch = function(i) {
console.warn("---", env);
if (!env.supportsTouch && !env.supportsIePointer) {
return;
}
Expand Down Expand Up @@ -958,10 +957,11 @@ var touch = function(i) {
}

function touchStart(e) {
console.log(i);
if (!i.settings.swipePropagation) {
console.log("---touchStart stop");
e.stopPropagation();
}

if (!shouldHandle(e)) {
return;
}
Expand Down Expand Up @@ -1024,7 +1024,6 @@ var touch = function(i) {

function touchMove(e) {
if (!i.settings.swipePropagation) {
console.log("---touchMove stop");
e.stopPropagation();
}
if (shouldHandle(e)) {
Expand Down Expand Up @@ -1058,7 +1057,6 @@ var touch = function(i) {
}
function touchEnd(e) {
if (!i.settings.swipePropagation) {
console.log("---touchEnd stop");
e.stopPropagation();
}
if (i.settings.swipeEasing) {
Expand Down
Loading

0 comments on commit 41603b0

Please sign in to comment.