Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtesaak committed Jul 10, 2018
1 parent fc1ddb5 commit 23c6b20
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions dist/perfect-scrollbar.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ var keyboard = function(i) {

var wheel = function(i) {
var element = i.element;
console.log("--- wheel", env);
console.warn("--- wheel", env);
function shouldPreventDefault(deltaX, deltaY) {
var roundedScrollTop = Math.floor(element.scrollTop);
var isTop = element.scrollTop === 0;
Expand Down Expand Up @@ -878,7 +878,7 @@ var wheel = function(i) {
};

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

function touchStart(e) {
console.log("test", e);
console.warn("test", e);
if (!shouldHandle(e)) {
return;
}
console.log("test");
console.warn("test");
if (!i.settings.swipePropagation) {
e.stopPropagation();
}
Expand Down
8 changes: 4 additions & 4 deletions dist/perfect-scrollbar.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ var keyboard = function(i) {

var wheel = function(i) {
var element = i.element;
console.log("--- wheel", env);
console.warn("--- wheel", env);
function shouldPreventDefault(deltaX, deltaY) {
var roundedScrollTop = Math.floor(element.scrollTop);
var isTop = element.scrollTop === 0;
Expand Down Expand Up @@ -876,7 +876,7 @@ var wheel = function(i) {
};

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

function touchStart(e) {
console.log("test", e);
console.warn("test", e);
if (!shouldHandle(e)) {
return;
}
console.log("test");
console.warn("test");
if (!i.settings.swipePropagation) {
e.stopPropagation();
}
Expand Down
8 changes: 4 additions & 4 deletions dist/perfect-scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ var keyboard = function(i) {

var wheel = function(i) {
var element = i.element;
console.log("--- wheel", env);
console.warn("--- wheel", env);
function shouldPreventDefault(deltaX, deltaY) {
var roundedScrollTop = Math.floor(element.scrollTop);
var isTop = element.scrollTop === 0;
Expand Down Expand Up @@ -882,7 +882,7 @@ var wheel = function(i) {
};

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

function touchStart(e) {
console.log("test", e);
console.warn("test", e);
if (!shouldHandle(e)) {
return;
}
console.log("test");
console.warn("test");
if (!i.settings.swipePropagation) {
e.stopPropagation();
}
Expand Down
Loading

0 comments on commit 23c6b20

Please sign in to comment.