ContextMenuArea: Intercept long press on Android

This commit is contained in:
Olivier Goffart 2025-02-24 18:27:25 +01:00 committed by GitHub
parent bd80829a44
commit 7390df1b47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 53 additions and 7 deletions

View file

@ -235,7 +235,9 @@ fn default_config() -> cbindgen::Config {
config.defines = [
("target_pointer_width = 64".into(), "SLINT_TARGET_64".into()),
("target_pointer_width = 32".into(), "SLINT_TARGET_32".into()),
("target_arch = wasm32".into(), "SLINT_TARGET_WASM".into()), // Disable any wasm guarded code in C++, too - so that there are no gaps in enums.
// Disable any wasm guarded code in C++, too - so that there are no gaps in enums.
("target_arch = wasm32".into(), "SLINT_TARGET_WASM".into()),
("target_os = android".into(), "__ANDROID__".into()),
]
.iter()
.cloned()