Skip to content

Commit

Permalink
Merge pull request #1395 from nextcloud/disable-userinteraction-in-au…
Browse files Browse the repository at this point in the history
…th-vc

Disable user interaction while navigation is ongoing
  • Loading branch information
SystemKeeper authored Oct 20, 2023
2 parents f1d432c + 8b06458 commit 2683b82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NextcloudTalk/AuthenticationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,15 @@ - (void)webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAut

- (void)webView:(WKWebView *)webView didCommitNavigation:(WKNavigation *)navigation
{
// Disable user interaction to prevent any unwanted zooming while the navigation is ongoing
[self.webView setUserInteractionEnabled:NO];
[_activityIndicatorView stopAnimating];
[_activityIndicatorView removeFromSuperview];
}

- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation {
[self.webView setUserInteractionEnabled:YES];
}


@end

0 comments on commit 2683b82

Please sign in to comment.