SSimon HausmannFix copy-paste error in testing backend package description
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Synthesize pinch/rotation gestures from raw multi-touch events ## Summary - Synthesize PinchGesture, RotationGesture, and DoubleTapGesture events from raw multi-touch input on backends that lack native gesture recognition (Android, Linux KMS) - Add a TouchState state machine in window.rs that tracks active touches and transitions through Idle → TwoFingersDown → Pinching, producing the same MouseEvent variants that the winit backend already emits for macOS platform gestures - Update the native-gestures example with Android support and improved UI - Review fixes: sign convention normalization, fixed-capacity data structures (no heap allocation), callback ordering, deduplication of coordinate conversion and phase mapping helpers, edge-case test coverage ## Details The TouchState recognizer: - Forwards single-finger touches as mouse press/move/release events - Detects two-finger gestures with configurable thresholds (8px pinch, 5° rotation) - Synthesizes a release for the primary finger before entering gesture mode - Re-presses the remaining finger when a gesture ends with one finger still down - Detects double-tap with distance and timing constraints - Uses fixed-capacity data structures (TouchMap, TouchEventBuffer) to avoid heap allocation Backend changes: - **Android**: Unified coordinate conversion, calls process_touch_input for multi-pointer events - **Linux KMS**: Replaced BTreeMap with fixed-capacity array for touch positions - **Winit**: Extracted winit_touch_phase helper, negates rotation delta at the source to match Slint convention (positive = clockwise) | 8 个月前 | |
Minor clippy fixes: comment typos, &'static, Error::other, is_err, unwrap_or_default, etc. | 8 个月前 | |
refactor: Relocate StandardListViewItem and TableColumn to i_slint_core::items and update imports | 8 个月前 | |
Fix cfg guard for testing backend selection in selector Use backend-testing feature (which enables the internal sub-feature) instead of i-slint-backend-testing (the implicit optional dependency feature) to guard the testing backend selection block. The block references TestingBackendOptions which requires the internal feature. | 8 个月前 | |
Fix copy-paste error in testing backend package description The description incorrectly said "OpenGL rendering backend for Slint" instead of "Testing backend for Slint". | 8 个月前 | |
Minor clippy fixes: comment typos, &'static, Error::other, is_err, unwrap_or_default, etc. | 8 个月前 |