From 75b098c7b306912e43dc2509f9a88511da635bb4 Mon Sep 17 00:00:00 2001 From: aalhitennf Date: Thu, 7 Mar 2024 21:24:51 +0200 Subject: [PATCH] Continue text editor pointer events (#348) Currently editor eats some pointer events. Continuing them makes parent nodes able to get drag position etc. --- src/views/editor/view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/editor/view.rs b/src/views/editor/view.rs index 2462b8c3..510b3ad1 100644 --- a/src/views/editor/view.rs +++ b/src/views/editor/view.rs @@ -1203,12 +1203,12 @@ fn editor_content( editor.get_untracked().pointer_down(pointer_event); } }) - .on_event_stop(EventListener::PointerMove, move |event| { + .on_event_cont(EventListener::PointerMove, move |event| { if let Event::PointerMove(pointer_event) = event { editor.get_untracked().pointer_move(pointer_event); } }) - .on_event_stop(EventListener::PointerUp, move |event| { + .on_event_cont(EventListener::PointerUp, move |event| { if let Event::PointerUp(pointer_event) = event { editor.get_untracked().pointer_up(pointer_event); }