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 8b46dd2 commit db326b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/handlers/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ export default function(i) {

function touchMove(e) {
if (shouldHandle(e)) {

if (!i.settings.swipePropagation) {
e.stopPropagation();
}

const touch = getTouch(e);

const currentOffset = { pageX: touch.pageX, pageY: touch.pageY };
Expand Down Expand Up @@ -174,6 +179,9 @@ export default function(i) {
}
}
function touchEnd() {
if (!i.settings.swipePropagation) {
e.stopPropagation();
}
if (i.settings.swipeEasing) {
clearInterval(easingLoop);
easingLoop = setInterval(function() {
Expand Down

0 comments on commit db326b9

Please sign in to comment.