Skip to content

Commit

Permalink
prevent scrolling while touch move
Browse files Browse the repository at this point in the history
  • Loading branch information
berndartmueller committed Aug 20, 2020
1 parent d247d58 commit 2cef5eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
<div class="virchual-button-next"></div>
</div>

<div class="virchual-container image-swiper">
<!-- Additional required wrapper -->
<div class="virchual__frame" style="height: 100%;"></div>

<!-- If we need navigation buttons -->
<div class="virchual-button-prev"></div>
<div class="virchual-button-next"></div>
</div>

<script src="index.bundle.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
overflow: hidden;
height: 100%;
user-select: none;
touch-action: none;
}

.virchual__list {
Expand Down

0 comments on commit 2cef5eb

Please sign in to comment.