Prevent some cases of clipping icons due to pixel coord rounding

This commit is contained in:
Julia 2023-05-08 11:32:57 -04:00
parent 235470bbfd
commit 332b364a30
2 changed files with 3 additions and 2 deletions

View file

@ -199,7 +199,7 @@ impl<V: View> DragAndDrop<V> {
return None;
}
let position = position - region_offset;
let position = (position - region_offset).round();
Some(
Overlay::new(
MouseEventHandler::<DraggedElementHandler, V>::new(