servo/support
Jonathan Schwender dfcbb18a8b
android: Fix flinging downwards (#34584)
* android: Fix onScroll source

Scrolling should be based on `e2`, the second event, since dX and
dY are relative to e2 and not e1.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>

* android: Fix flinging down on android.

We need to ensure x and y are inside the window, otherwise servo will
not scroll!

Our fling implementation will set `mCurX` and `mCurY` to a very high
initial value when flinging with a negative velocity, since we don't
know the size of our content page and the android `OverScroller`
needs to know the size of the page.

Setting the page size to a ridiculously high value ensures that flinging
will not be cut of short, even if we fling farther then the edge of the
screen, starting from the touch up point.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>

---------

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2024-12-12 04:54:50 +00:00
..
android android: Fix flinging downwards (#34584) 2024-12-12 04:54:50 +00:00
arm32 Update MPL license to https (part 1) 2018-11-19 14:46:43 +01:00
arm64 Update MPL license to https (part 1) 2018-11-19 14:46:43 +01:00
crown Support custom derives for generated types (#34356) 2024-11-24 18:15:50 +00:00
macos Bootstrap pkg-config and cmake on MacOS (#30497) 2023-10-05 01:12:29 +00:00
openharmony ohos: Improve argument filtering (#34422) 2024-12-02 08:17:53 +00:00
rust-task_info Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
windows Attempt to link to MPL-2.0 license page in Windows installer (#33711) 2024-10-08 09:24:23 +00:00
suppressed_leaks_for_asan.txt Fix a memory leak in components/script/script_runtime.rs and add more leak suppressions (#33175) 2024-08-26 07:33:23 +00:00