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.
Created attachment 362869 [details]
Comment on attachment 362869 [details]
Clearing flags on attachment: 362869
Committed r242059: <https://trac.webkit.org/changeset/242059>
All reviewed patches have been landed. Closing bug.