* [PATCH yew-widget-toolkit] touch: gesture destector: fix double -> multi transition with pointers
@ 2026-04-17 6:58 Dominik Csapak
2026-04-17 7:06 ` applied: " Dietmar Maurer
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2026-04-17 6:58 UTC (permalink / raw)
To: yew-devel
when a third pointer is added, we accidentally didn't trigger
the pinch/zoom end callback
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
is a followup to
https://lore.proxmox.com/yew-devel/20260416085849.1062721-1-d.csapak@proxmox.com/T/#t
but can be squashed in if preferred
src/touch/gesture_detector.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/touch/gesture_detector.rs b/src/touch/gesture_detector.rs
index 17bf072..f91d16b 100644
--- a/src/touch/gesture_detector.rs
+++ b/src/touch/gesture_detector.rs
@@ -961,8 +961,10 @@ impl PwtGestureDetector {
Msg::PointerDown(event) => {
let pointer_count = self.pointers.len();
assert!(pointer_count == 2);
+ let (point0, point1) = self.get_pinch_points();
self.register_pointer(ctx, &event);
self.state = DetectionState::Multi;
+ self.call_on_pinch_zoom(ctx, point0, point1, GesturePhase::End);
}
Msg::TouchStart(event) => {
let pointer_count = self.pointers.len();
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-17 7:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-17 6:58 [PATCH yew-widget-toolkit] touch: gesture destector: fix double -> multi transition with pointers Dominik Csapak
2026-04-17 7:06 ` applied: " Dietmar Maurer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox