Skip to content

Commit

Permalink
Continue text editor pointer events (#348)
Browse files Browse the repository at this point in the history
Currently editor eats some pointer events. Continuing them makes parent nodes able to get drag position etc.
  • Loading branch information
aalhitennf authored Mar 7, 2024
1 parent 936e5ce commit 75b098c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/editor/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 75b098c

Please sign in to comment.