Fix: improve edge pointer accuracy

This commit is contained in:
RipleyTom 2026-07-21 10:32:09 +02:00 committed by Victoria Brekenfeld
parent 9789187416
commit 8955024bff
7 changed files with 43 additions and 32 deletions

View file

@ -548,7 +548,7 @@ impl PointerGrab<State> for MenuGrab {
let mut bbox = elem.iced.bbox();
bbox.loc = elem.position.as_logical();
bbox.contains(event_location.to_i32_round())
bbox.contains(event_location.to_i32_floor())
}) {
let element = &mut elements[i];
@ -753,7 +753,7 @@ impl TouchGrab<State> for MenuGrab {
let mut bbox = elem.iced.bbox();
bbox.loc = elem.position.as_logical();
bbox.contains(event_location.to_i32_round())
bbox.contains(event_location.to_i32_floor())
}) {
let element = &mut elements[i];