gecko-dev/gfx/layers/apz/public
Timothy Nikkel 973c15735b Bug 1713589. If double tap zoom can't find a rect to zoom in to and we are zoomed out then zoom in some small default amount. r=botond
This provides feedback to the user, otherwise nothing happens and the user doesn't know if their input was accepted or not. This matches what Chrome does.

We add a new flag for ZoomToRect that only double tap uses. We also need to add the cursor position to the ZoomTarget struct as that is what we will be zooming in on. (CalculateRectToZoomTo has a little bit of refactoring to calculate this point sooner and without an intermediate variable.)

The rest of the patch is some logic in ZoomToRect to decide when to do this, and some math to compute the zoom to rect (which is similar to the zoom out code).

Differential Revision: https://phabricator.services.mozilla.com/D116370
2021-06-03 09:51:50 +00:00
..
APZInputBridge.h Bug 1696442 - Make ScrollingDownWillMoveDynamicToolbar return a pair of boolean and cont AsyncPanZoomController*. r=botond 2021-03-10 23:36:14 +00:00
APZPublicUtils.h Bug 1713485 - Remove code for completed migration. r=hiro 2021-05-31 21:36:36 +00:00
APZSampler.h Bug 1705826 - Apply the overscroll transform to content fixed to the root (non-WebRender). r=tnikkel 2021-04-21 00:07:46 +00:00
APZUpdater.h
CompositorController.h Bug 1687239 part 2 - Remove plugin support from layout/. r=emilio 2021-01-25 11:53:49 +00:00
GeckoContentController.h Bug 1671048 - Reduce places that include RepaintRequest.h. r=botond 2020-10-14 19:23:45 +00:00
GeckoContentControllerTypes.h Bug 1638163 - Reduce unnecessary GeckoContentController.h includes. r=kats 2020-05-15 21:20:48 +00:00
IAPZCTreeManager.h Bug 1713589. If double tap zoom can't find a rect to zoom in to and we are zoomed out then zoom in some small default amount. r=botond 2021-06-03 09:51:50 +00:00
MatrixMessage.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
MetricsSharingController.h