Summary: | [iOS] Date picker view jumps to center when switching between MobileSafari and another app | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Aditya Keerthi <akeerthi> | ||||||
Component: | Forms | Assignee: | Aditya Keerthi <akeerthi> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | cdumez, thorton, webkit-bug-importer, wenson_hsieh | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | Other | ||||||||
Hardware: | iPhone / iPad | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Aditya Keerthi
2021-03-23 16:05:13 PDT
Created attachment 424075 [details]
Patch
Comment on attachment 424075 [details]
Patch
I think this might not work if the focused element is partially occluded (such that the center is covered by another element), but this is kind of already a problem with this approach already (since the last interaction location isn't guaranteed to find the same element anyways).
It would probably be better if we used the focused element's ElementContext to make sure we're targeting the same element (or use the element context and grab the information we need from the same focused element).
Created attachment 424193 [details]
Patch
(In reply to Wenson Hsieh from comment #3) > Comment on attachment 424075 [details] > Patch > > I think this might not work if the focused element is partially occluded > (such that the center is covered by another element), but this is kind of > already a problem with this approach already (since the last interaction > location isn't guaranteed to find the same element anyways). > > It would probably be better if we used the focused element's ElementContext > to make sure we're targeting the same element (or use the element context > and grab the information we need from the same focused element). The latest patch uses the information in FocusedElementInformation to present the context menu for form controls, so we don't need to worry about the position information being correct. Comment on attachment 424193 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=424193&action=review > Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:3080 > +#if ENABLE(ASYNC_SCROLLING) Almost certainly unnecessary in this file but fine :) Committed r275054: <https://commits.webkit.org/r275054> All reviewed patches have been landed. Closing bug and clearing flags on attachment 424193 [details]. |