Bug 194995

Summary: [iOS] Adjust initial scale zooming heuristics when changing view scale
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: WebKit2Assignee: Wenson Hsieh <wenson_hsieh>
Severity: Normal CC: bdakin, commit-queue, thorton, webkit-bug-importer, yongjun_zhang
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Patch none

Description Wenson Hsieh 2019-02-24 16:54:31 PST
Currently, we only zoom to the new initial scale iff we're exactly at initial scale before changing the view scale. This was done so that if a user zoomed in really far and then increased the view scale, we wouldn't end up zooming out as a result.

Per conversation with Tim and Yongjun, we should consider changing the heuristics here, such that:
• If the view scale is increasing and the new initial scale is greater than the current scale, zoom to initial scale.
• Likewise, if the view scale is decreasing and the new initial scale is less than the current scale, zoom to initial scale.
Comment 1 Wenson Hsieh 2019-02-24 17:16:46 PST
Created attachment 362869 [details]
Comment 2 WebKit Commit Bot 2019-02-25 16:19:56 PST
Comment on attachment 362869 [details]

Clearing flags on attachment: 362869

Committed r242059: <https://trac.webkit.org/changeset/242059>
Comment 3 WebKit Commit Bot 2019-02-25 16:19:57 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2019-02-25 16:20:54 PST