File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,7 @@ internal extension PageboyViewController {
211
211
pageViewController. view. backgroundColor = . clear
212
212
pageViewController. scrollView? . delaysContentTouches = delaysContentTouches
213
213
pageViewController. scrollView? . isScrollEnabled = isScrollEnabled
214
+ pageViewController. scrollView? . isDirectionalLockEnabled = isDirectionalLockEnabled
214
215
pageViewController. scrollView? . isUserInteractionEnabled = isUserInteractionEnabled
215
216
216
217
reloadData ( reloadViewControllers: reloadViewControllers)
Original file line number Diff line number Diff line change @@ -134,6 +134,14 @@ open class PageboyViewController: UIViewController {
134
134
pageViewController? . scrollView? . isScrollEnabled = isScrollEnabled
135
135
}
136
136
}
137
+ /// Whether scrolling is disabled in a particular direction.
138
+ ///
139
+ /// Default is FALSE.
140
+ open var isDirectionalLockEnabled : Bool = false {
141
+ didSet {
142
+ pageViewController? . scrollView? . isDirectionalLockEnabled = isDirectionalLockEnabled
143
+ }
144
+ }
137
145
/// Whether the page view controller should infinitely scroll at the end of page ranges.
138
146
///
139
147
/// Default is FALSE.
You can’t perform that action at this time.
0 commit comments