Skip to content

Commit

Permalink
fixed swipe direction
Browse files Browse the repository at this point in the history
  • Loading branch information
fchasen committed Jun 5, 2015
1 parent 0f26254 commit 61ebe6d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/spread.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
color: #333;

position: absolute;
height: 100%;
height: 96.5%;
width: 100%;
display: flex;
-webkit-align-items: center;
Expand All @@ -26,13 +26,12 @@

#viewer {
width: 290px;
height: 440px;
height: 100%;
background: white;
box-shadow: 0 0 4px #ccc;
padding: 10px 10px 0px 10px;
margin: 5px auto;
background: white;
pointer-events: none;
}

#prev {
Expand Down Expand Up @@ -73,6 +72,7 @@
and (min-device-width : 320px)
and (max-device-width : 667px) {
.arrow {
position: inherit;
display: none;
}
}
Expand Down Expand Up @@ -132,11 +132,11 @@
}, false);

$(window).on( "swipeleft", function( event ) {
rendition.prev();
rendition.next();
});

$(window).on( "swiperight", function( event ) {
rendition.next();
rendition.prev();
});


Expand Down

0 comments on commit 61ebe6d

Please sign in to comment.