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 db326b9 commit 60e8fe7
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 22 deletions.
17 changes: 13 additions & 4 deletions dist/perfect-scrollbar.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -954,12 +954,13 @@ var touch = function(i) {
}

function touchStart(e) {
if (!shouldHandle(e)) {
return;
}
if (!i.settings.swipePropagation) {
console.log("---touchStart stop");
e.stopPropagation();
}
if (!shouldHandle(e)) {
return;
}
var touch = getTouch(e);

startOffset.pageX = touch.pageX;
Expand Down Expand Up @@ -1018,6 +1019,10 @@ var touch = function(i) {
}

function touchMove(e) {
if (!i.settings.swipePropagation) {
console.log("---touchMove stop");
e.stopPropagation();
}
if (shouldHandle(e)) {
var touch = getTouch(e);

Expand Down Expand Up @@ -1047,7 +1052,11 @@ var touch = function(i) {
}
}
}
function touchEnd() {
function touchEnd(e) {
if (!i.settings.swipePropagation) {
console.log("---touchEnd stop");
e.stopPropagation();
}
if (i.settings.swipeEasing) {
clearInterval(easingLoop);
easingLoop = setInterval(function() {
Expand Down
17 changes: 13 additions & 4 deletions dist/perfect-scrollbar.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -952,12 +952,13 @@ var touch = function(i) {
}

function touchStart(e) {
if (!shouldHandle(e)) {
return;
}
if (!i.settings.swipePropagation) {
console.log("---touchStart stop");
e.stopPropagation();
}
if (!shouldHandle(e)) {
return;
}
var touch = getTouch(e);

startOffset.pageX = touch.pageX;
Expand Down Expand Up @@ -1016,6 +1017,10 @@ var touch = function(i) {
}

function touchMove(e) {
if (!i.settings.swipePropagation) {
console.log("---touchMove stop");
e.stopPropagation();
}
if (shouldHandle(e)) {
var touch = getTouch(e);

Expand Down Expand Up @@ -1045,7 +1050,11 @@ var touch = function(i) {
}
}
}
function touchEnd() {
function touchEnd(e) {
if (!i.settings.swipePropagation) {
console.log("---touchEnd stop");
e.stopPropagation();
}
if (i.settings.swipeEasing) {
clearInterval(easingLoop);
easingLoop = setInterval(function() {
Expand Down
17 changes: 13 additions & 4 deletions dist/perfect-scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -958,12 +958,13 @@ var touch = function(i) {
}

function touchStart(e) {
if (!shouldHandle(e)) {
return;
}
if (!i.settings.swipePropagation) {
console.log("---touchStart stop");
e.stopPropagation();
}
if (!shouldHandle(e)) {
return;
}
var touch = getTouch(e);

startOffset.pageX = touch.pageX;
Expand Down Expand Up @@ -1022,6 +1023,10 @@ var touch = function(i) {
}

function touchMove(e) {
if (!i.settings.swipePropagation) {
console.log("---touchMove stop");
e.stopPropagation();
}
if (shouldHandle(e)) {
var touch = getTouch(e);

Expand Down Expand Up @@ -1051,7 +1056,11 @@ var touch = function(i) {
}
}
}
function touchEnd() {
function touchEnd(e) {
if (!i.settings.swipePropagation) {
console.log("---touchEnd stop");
e.stopPropagation();
}
if (i.settings.swipeEasing) {
clearInterval(easingLoop);
easingLoop = setInterval(function() {
Expand Down
Loading

0 comments on commit 60e8fe7

Please sign in to comment.