Skip to content

Commit

Permalink
fixed for vertical orientation, #222
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Feb 10, 2016
1 parent ddc2051 commit c23d1bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,12 @@ define( function( require ) {
else {

// animation disabled, move immediate to new page
scrollingNode.left = -pageNumber * scrollingDelta;
if ( isHorizontal ) {
scrollingNode.left = -pageNumber * scrollingDelta;
}
else {
scrollingNode.top = -pageNumber * scrollingDelta;
}
}
} );

Expand Down

0 comments on commit c23d1bd

Please sign in to comment.