Commit 46d832cc authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

[iOS] Do not scroll to top when in fullscreen

This CL disable the "scroll to top" action when tapping the status bar
when fullscreen is enabled.

Bug: 876716
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: If2a199be39da0de596e8d945e9fc4c42c65ad009
Reviewed-on: https://chromium-review.googlesource.com/1185098Reviewed-by: default avatarKurt Horimoto <kkhorimoto@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585766}
parent 5a7eae1a
...@@ -57,10 +57,14 @@ ...@@ -57,10 +57,14 @@
- (BOOL)webViewScrollViewShouldScrollToTop: - (BOOL)webViewScrollViewShouldScrollToTop:
(CRWWebViewScrollViewProxy*)webViewScrollViewProxy { (CRWWebViewScrollViewProxy*)webViewScrollViewProxy {
// Inform FullscreenUIElements that the content is going to be scrolled to the if (self.model->progress() > 0.05) {
// top. // Inform FullscreenUIElements that the content is going to be scrolled to
// the top.
self.mediator->ScrollToTop(); self.mediator->ScrollToTop();
return YES; return YES;
} else {
return NO;
}
} }
@end @end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment