Skip to content

Commit 4edae0d

Browse files
committed
Fix scroll when dragToFlip is false
Closes #83
1 parent 22e54aa commit 4edae0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Flipbook.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,6 @@ export default
717717
@activeCursor = 'all-scroll'
718718
719719
swipeMove: (touch) ->
720-
return unless @dragToFlip
721720
return unless @touchStartX?
722721
x = touch.pageX - @touchStartX
723722
y = touch.pageY - @touchStartY
@@ -726,6 +725,7 @@ export default
726725
if @zoom > 1
727726
@dragScroll x, y if @dragToScroll
728727
return
728+
return unless @dragToFlip
729729
return if Math.abs(y) > Math.abs(x)
730730
@activeCursor = 'grabbing'
731731
if x > 0

0 commit comments

Comments
 (0)