servo/ports/servoshell/desktop
Jonathan Schwender 72971bd271
Add simple fling implementation (#33219)
* Add simple fling implementation

Add a simple fling implementation, which depends on a refresh tick from the
embedder.
Currently this refresh tick is only implemented for OpenHarmony
(using the vsync signal).
The fling implementation is very simple, without any fancy things like acceleration.
This can be improved in the future.

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

* Multiply initial velocity with 2

This makes the experience much more snappy.

Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>

* address review comments

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

* Rename constants and add todo

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

* fmt

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

* Add a few periods to make comments consistent

Signed-off-by: Martin Robinson <mrobinson@igalia.com>

---------

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-11-10 10:15:42 +00:00
..
protocols Create HttpStatus to safely deal with HTTP responses status. (#33581) 2024-09-29 18:23:48 +00:00
app.rs ServoShell: Don't request redrawing again when processing a RedrawRequested event (#34008) 2024-10-25 14:48:47 +00:00
cli.rs Make tracing available on all platforms, with or without perfetto (#33301) 2024-09-04 12:56:29 +00:00
egui_glue.rs Upgrade to egui@0.29.1 and winit@0.30.5 (#33751) 2024-10-10 17:18:03 +00:00
embedder.rs Fix typo on protocol handlers (#33565) 2024-09-27 07:16:27 +00:00
events_loop.rs Avoid invalid lifetime extension for winit event loop. (#33962) 2024-10-22 09:32:03 +00:00
geometry.rs Split servoshell into Desktop and common part (#32457) 2024-06-14 06:26:35 +00:00
headed_window.rs servoshell: fix logical screen size calculation (#34096) 2024-11-01 10:35:43 +00:00
headless_window.rs servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00
keyutils.rs servoshell: Clean up keyboard event conversion a little (#32564) 2024-06-19 19:38:56 +00:00
minibrowser.rs Upgrade to egui@0.29.1 and winit@0.30.5 (#33751) 2024-10-10 17:18:03 +00:00
mod.rs make protocol handlers registrable (#33104) 2024-08-22 04:11:16 +00:00
tracing.rs Add simple fling implementation (#33219) 2024-11-10 10:15:42 +00:00
webview.rs Drop support for '--no-minibrowser' mode (#33677) 2024-10-07 08:00:32 +00:00
window_trait.rs Upgrade to egui@0.29.1 and winit@0.30.5 (#33751) 2024-10-10 17:18:03 +00:00