|
@@ -51,6 +51,7 @@ static NSURLCredential* clientAuthenticationCredential;
|
51
|
51
|
_scrollEnabled = YES;
|
52
|
52
|
_showsHorizontalScrollIndicator = YES;
|
53
|
53
|
_showsVerticalScrollIndicator = YES;
|
|
54
|
+ _directionalLockEnabled = YES;
|
54
|
55
|
_automaticallyAdjustContentInsets = YES;
|
55
|
56
|
_contentInset = UIEdgeInsetsZero;
|
56
|
57
|
}
|
|
@@ -135,6 +136,7 @@ static NSURLCredential* clientAuthenticationCredential;
|
135
|
136
|
_webView.scrollView.bounces = _bounces;
|
136
|
137
|
_webView.scrollView.showsHorizontalScrollIndicator = _showsHorizontalScrollIndicator;
|
137
|
138
|
_webView.scrollView.showsVerticalScrollIndicator = _showsVerticalScrollIndicator;
|
|
139
|
+ _webView.scrollView.directionalLockEnabled = _directionalLockEnabled;
|
138
|
140
|
_webView.allowsLinkPreview = _allowsLinkPreview;
|
139
|
141
|
[_webView addObserver:self forKeyPath:@"estimatedProgress" options:NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew context:nil];
|
140
|
142
|
_webView.allowsBackForwardNavigationGestures = _allowsBackForwardNavigationGestures;
|
|
@@ -351,6 +353,12 @@ static NSURLCredential* clientAuthenticationCredential;
|
351
|
353
|
}
|
352
|
354
|
}
|
353
|
355
|
|
|
356
|
+- (void)setDirectionalLockEnabled:(BOOL)directionalLockEnabled
|
|
357
|
+{
|
|
358
|
+ _directionalLockEnabled = directionalLockEnabled;
|
|
359
|
+ _webView.scrollView.directionalLockEnabled = directionalLockEnabled;
|
|
360
|
+}
|
|
361
|
+
|
354
|
362
|
- (void)setShowsHorizontalScrollIndicator:(BOOL)showsHorizontalScrollIndicator
|
355
|
363
|
{
|
356
|
364
|
_showsHorizontalScrollIndicator = showsHorizontalScrollIndicator;
|