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

@ -63,7 +63,7 @@ impl PointerConstraintsHandler for State {
if let Some(region) = constraint.region() {
if let Some(surface_location) = surface_location
&& let position = pointer.current_location()
&& let point = (position - surface_location.as_logical()).to_i32_round()
&& let point = (position - surface_location.as_logical()).to_i32_floor()
&& region.contains(point)
{
constraint.activate();