javascript - Cannot prevent Safari's useless action sheet from showing when long pressing a link on WKWebView -
i know accepted answer inject javascript on page:
document.body.style.webkittouchcallout='none';
i'm doing injection when page finishes loading:
- (void)webview:(wkwebview *)webview didfinishnavigation:(wknavigation *)navigation { [_webview evaluatejavascript:@"document.body.style.webkittouchcallout='none';" completionhandler:^(id result, nserror *error){ nslog(@"javascript: {%@, %@}", result, error.description); }]; }
this leaves me serious issue , second 1 in case though single issue not enough.
if page hasn't finished loading , user long presses safari's useless action sheet still appears.
on pages iframes action sheet still appears after page has finished loading , javascript has been injected.
any suggestions?
Comments
Post a Comment