Skip to content
This repository was archived by the owner on Jun 17, 2018. It is now read-only.

Commit 970f2b5

Browse files
committed
Set isDirectionalLockEnabled to true
1 parent 8615e8b commit 970f2b5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Pod/Classes/MenuView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ open class MenuView: UIScrollView {
164164
showsVerticalScrollIndicator = false
165165
bounces = menuViewBounces
166166
isScrollEnabled = menuViewScrollEnabled
167+
isDirectionalLockEnabled = true
167168
decelerationRate = menuOptions.deceleratingRate
168169
scrollsToTop = false
169170
translatesAutoresizingMaskIntoConstraints = false

Pod/Classes/PagingViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ open class PagingViewController: UIViewController {
1515

1616
internal let contentScrollView: UIScrollView = {
1717
$0.isPagingEnabled = true
18+
$0.isDirectionalLockEnabled = true
1819
$0.showsHorizontalScrollIndicator = false
1920
$0.showsVerticalScrollIndicator = false
2021
$0.scrollsToTop = false

0 commit comments

Comments
 (0)