Fix: improve edge pointer accuracy
This commit is contained in:
parent
9789187416
commit
8955024bff
7 changed files with 43 additions and 32 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue