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 80e6e30 commit 93a2eb0
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
@@ -1,5 +1,5 @@
/*!
* perfect-scrollbar v1.4.0
* perfect-scrollbar v1.4.1
* (c) 2018 Hyunje Jun
* @license MIT
*/
Expand Down Expand Up @@ -954,15 +954,13 @@ var touch = function(i) {
}

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

alert("ok");
var touch = getTouch(e);

startOffset.pageX = touch.pageX;
Expand Down
6 changes: 2 additions & 4 deletions dist/perfect-scrollbar.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* perfect-scrollbar v1.4.0
* perfect-scrollbar v1.4.1
* (c) 2018 Hyunje Jun
* @license MIT
*/
Expand Down Expand Up @@ -952,15 +952,13 @@ var touch = function(i) {
}

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

alert("ok");
var touch = getTouch(e);

startOffset.pageX = touch.pageX;
Expand Down
6 changes: 2 additions & 4 deletions dist/perfect-scrollbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* perfect-scrollbar v1.4.0
* perfect-scrollbar v1.4.1
* (c) 2018 Hyunje Jun
* @license MIT
*/
Expand Down Expand Up @@ -958,15 +958,13 @@ var touch = function(i) {
}

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

alert("ok");
var touch = getTouch(e);

startOffset.pageX = touch.pageX;
Expand Down
4 changes: 2 additions & 2 deletions dist/perfect-scrollbar.min.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/handlers/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,13 @@ export default function(i) {
}

function touchStart(e) {
console.warn(`test`, e);
if (!shouldHandle(e)) {
return;
}
console.warn(`test`);
if (!i.settings.swipePropagation) {
e.stopPropagation();
}

alert(`ok`)
const touch = getTouch(e);

startOffset.pageX = touch.pageX;
Expand Down

0 comments on commit 93a2eb0

Please sign in to comment.