Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@
sectionContainer: "section",
responsiveFallback: 600,
loop: true
});
$('body').bind('touchmove', function (ev) {
ev.preventDefault();
});
});

Expand Down
2 changes: 1 addition & 1 deletion jquery.onepage-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
if (touches && touches.length) {
startX = touches[0].pageX;
startY = touches[0].pageY;
$this.bind('touchmove', touchmove);
$this.unbind('touchmove', touchmove).bind('touchmove', touchmove);
}
}

Expand Down
3 changes: 1 addition & 2 deletions onepage-scroll.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
body, html {
margin: 0;
overflow: hidden;
-webkit-transition: opacity 400ms;
-moz-transition: opacity 400ms;
transition: opacity 400ms;
Expand Down Expand Up @@ -69,7 +68,7 @@ body, .onepage-wrapper, html {
}

.disabled-onepage-scroll, .disabled-onepage-scroll .wrapper {
overflow: auto;

}

.disabled-onepage-scroll .onepage-wrapper .section {
Expand Down