[Webkit-unassigned] [Bug 205458] REGRESSION: [ iOS ] imported/w3c/web-platform-tests/dom/events/Event-dispatch-on-disabled-elements.html is failing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 1 20:35:54 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=205458
--- Comment #8 from Wenson Hsieh <wenson_hsieh at apple.com> ---
A couple of potential ways to fix this:
1. Wait for animations on WKScrollView to finish before proceeding with a single tap in UIScriptControllerIOS::singleTapAtPointWithModifiers, like so:
+ NSDate *timeoutDate = [NSDate dateWithTimeIntervalSinceNow:someReasonableTimeoutDate];
+ while (webView().scrollView.layer.animationKeys.count) {
+ [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:timeoutDate];
+ if ([timeoutDate compare:NSDate.date] == NSOrderedAscending)
+ break;
+ }
or,
2. Force animations to finish before proceeding with a single tap in UIScriptControllerIOS::singleTapAtPointWithModifiers, like so:
+ [webView().scrollView _removeAllAnimations:NO];
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200102/6512e647/attachment.htm>
More information about the webkit-unassigned
mailing list