diff options
author | Jonathan Schwender <55576758+jschwe@users.noreply.github.com> | 2024-12-12 05:54:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 04:54:50 +0000 |
commit | dfcbb18a8b85a2a766765d4c2d9f10952e5dc0e0 (patch) | |
tree | 6e0d1f206769e5b1be33f1791ecb8f3ed289ae99 /python/servo/platform | |
parent | 84c59e09b679baadafc30145ac752e37844ac0b8 (diff) | |
download | servo-dfcbb18a8b85a2a766765d4c2d9f10952e5dc0e0.tar.gz servo-dfcbb18a8b85a2a766765d4c2d9f10952e5dc0e0.zip |
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>
Diffstat (limited to 'python/servo/platform')
0 files changed, 0 insertions, 0 deletions