slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.58k stars 604 forks source link

Docs: SwipeGestureHandler example is hard to use on Chrome and Safari #6350

Open NigelBreslaw opened 1 month ago

NigelBreslaw commented 1 month ago

https://releases.slint.dev/1.8.0/docs/slint/src/language/builtins/elements.html and then SwipeGestureHandler doesn't respond well on MacOS with a Touch pad when using Chrome. Seems better on Firefox.

image
ogoffart commented 1 month ago

I was hoping that #6414 would improve the behavior, but I got the report it is still broken.

Nightly link: https://snapshots.slint.dev/master/docs/slint/src/language/builtins/elements.html#swipegesturehandler

Note that I get this panic in the console with chromium:

slint_wasm_interpreter.js:632 panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/femtovg-0.9.2/src/renderer/opengl/gl_texture.rs:25:47:
called `Result::unwrap()` on an `Err` value: "Unable to create texture object"

So I don't think it is related to the SwipeGestureHandler at all.

tronical commented 1 month ago

That error is the consequence of too many preview canvases :-/