Prevent some cases of clipping icons due to pixel coord rounding
This commit is contained in:
parent
235470bbfd
commit
332b364a30
2 changed files with 3 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue