Commit Graph

10 Commits

Author SHA1 Message Date
Wes Johnston
33cb028f34 Bug 943513 - Update visual style of action modes. r=lucasr 2013-12-04 08:35:58 -08:00
Augustin Trancart
3639c05703 Bug 711959 - Adapt LayerMarginsAnimator to use the new RenderTask mechanism. r=kats 2013-09-04 14:07:11 -04:00
Kartikaya Gupta
687300d44d Bug 898877 - Prevent pages from getting stuck without the dynamic toolbar. r=Cwiiis
The problematic scenario is when the page is exactly the height of the screen
(with dynamic toolbar not visible). In this case, the scrollable() function in
Axis.java returns false on the vertical axis, and so the JavaPanZoomController
never does any scrolling. This in turns means that the scrollBy code in
LayerMarginsAnimator never gets to run, so you can never drag the toolbar back
into being visible. The patch ensures that scrollable() returns true when some
or all of the margins are not visible, ensuring that in these scenarios the
user can still scroll the toolbar back onto the screen. This patch also adds
some comments/asserts to verify the new code is threadsafe.
2013-08-16 08:42:23 -04:00
Chris Lord
935ae0bc57 Bug 886576 - Fix scrolling cancelling locked dynamic toolbar animations. r=kats
Move the margin animation-cancelling call into the margins-pinned check block
in LayerMarginsAnimator to make sure margin animations aren't cancelled by
scrolling when margins are locked.
2013-07-19 17:39:44 +01:00
Chris Lord
727620e7ec Bug 868998 - Expose the dynamic toolbar after a certain distance. r=kats
Instead of only exposing the toolbar when scrolling from the top quarter of the
screen, always expose the toolbar, but only after a certain distance.
2013-05-30 12:53:24 +01:00
Chris Lord
516b23e688 Bug 865298 - Don't allow margins to scroll on small pages. r=kats
Bug 858969 regressed this behaviour. Margins that are smaller than the screen
size should have pinned margins.
2013-04-29 15:18:23 +01:00
Chris Lord
84f543d494 Bug 865298 - Add an 'active area' for margin exposing. r=kats
This stops margins from being exposed unless the drag was started in an area
of the viewport that's near said margin. The margins will always be exposed
when reaching the edge of the page.
2013-04-29 15:18:23 +01:00
Chris Lord
27ca95544b Bug 858969 - Refactor dynamic toolbar so page is offset and not overlapped. r=kats,nrc
Refactor the dynamic toolbar code so that the ownership of various properties
is clearer, and the page is offset by the toolbar instead of being overlapped.
This fixes problems with the scroll origin of the page not corresponding to
the visible origin on the screen.
2013-04-25 18:47:08 +01:00
Ryan VanderMeulen
677c5b5128 Backed out changeset 684a5ca2efb7 (bug 858969) for Android M3 failures.
CLOSED TREE
2013-04-25 10:56:54 -04:00
Chris Lord
4852ece00b Bug 858969 - Refactor dynamic toolbar so page is offset and not overlapped. r=kats,nrc
Refactor the dynamic toolbar code so that the ownership of various properties
is clearer, and the page is offset by the toolbar instead of being overlapped.
This fixes problems with the scroll origin of the page not corresponding to
the visible origin on the screen.
2013-04-24 17:06:23 +01:00