| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This is a more natural collection of methods, as they all operate
directly on layers and accept a layer as their first argument.
|
|
|
|
|
| |
This simplifies the way that event handling interacts with the
compositor.
|
|\
| |
| |
| |
| |
| |
| |
| | |
Select the topmost layer at a given point to send mouse events and when
sending the event, ensure that they are relative to the layer origin,
rather than in absolute page coordinates.
Fixes #3504.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Select the topmost layer at a given point to send mouse events and when
sending the event, ensure that they are relative to the layer origin,
rather than in absolute page coordinates.
Fixes #3504.
|
|/
|
|
|
|
|
| |
Now that scrolling roots are properly sized, we can simply look at the
scrolling root layer size when deciding the extents of layer scrolling.
This simplifies things a bit and further codifies the current model of
scrolling root + mask_to_bounds.
|
|
|
|
|
|
| |
When interacting with Layers it is simpler to use LayerPixels, which
are unscaled pixels in the Layer coordinate system. This removes a lot
of room for error and makes things simpler.
|
|
|
|
|
|
|
| |
When traversing the layer tree to assign content offset, the new offset
needs to take into account any additional offset from children that are
also scrolling roots. This means that when you scroll a parent frame, it
doesn't override the scroll position of its children, but adds to it.
|
|
|
|
|
|
|
|
| |
Base layers (the background layer of each frame) shouldn't override the
size of their root layers. This allows base layers to scroll inside
root layer frames. This does mean that when determining the maximum
scroll position, we need to look at the size of scrolling root children
though.
|
|
|
|
|
| |
This allows the scroll handler to know if a child layer didn't handle
an event or the scroll position of the child layer was simply unchanged.
|
|
|
|
|
|
|
| |
Instead of sneakily setting the content offset and not the transform on
scrolling roots, let scrolling roots specify their scroll offset
directly and separately. This will also be important when adding proper
scrolling support for iframes.
|
|
|
|
|
|
|
|
|
|
|
| |
Content offset is now stored in unscaled pixels, so that it can be
applied to tile positions during compositor rendering without unscaling
it. This means that when using it in calculations of layer size (stored
in device pixels), we need to scale it. Scene scale is now stored as a
scale rather than a transformation.
Fixes #3269.
Fixes #3042.
|
|
|