Skip to content

Commit

Permalink
fix swipe action on Chrome
Browse files Browse the repository at this point in the history
Chrome > 55 implements pointer events but in order for them to work
properly we need to make sure that all children of swipe element have
touch-action property (it is not inherited in chrome)

see:
hammerjs/hammer.js#1050
  • Loading branch information
pirxpilot committed Dec 24, 2017
1 parent a86c4aa commit 5a3cf0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/stylesheets/style.styl
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ header .ls-furkot
.swipe
overflow hidden

*
touch-action pan-y !important

.pager
text-align center
font-weight: bold;
Expand Down

0 comments on commit 5a3cf0a

Please sign in to comment.