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

Commit bf217c3

Browse files
authored
Merge pull request #288 from kitasuke/set_directional_lock
Avoid out of bounds on UIScrollView
2 parents 2c1fe4b + 970f2b5 commit bf217c3

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
@@ -170,6 +170,7 @@ open class MenuView: UIScrollView {
170170
showsVerticalScrollIndicator = false
171171
bounces = menuViewBounces
172172
isScrollEnabled = menuViewScrollEnabled
173+
isDirectionalLockEnabled = true
173174
decelerationRate = menuOptions.deceleratingRate
174175
scrollsToTop = false
175176
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)