MenuPopup: better mouse scroll alignment

This commit is contained in:
Alexandre Bury 2017-12-07 14:14:52 -08:00
parent fdf4a0db4b
commit a7d38d9608

View File

@ -333,7 +333,7 @@ impl View for MenuPopup {
} => {
// If the mouse is dragged, we always consume the event.
fix_scroll = false;
let position = position.saturating_sub(offset);
let position = position.saturating_sub(offset + (0, 1));
self.scrollbase.drag(position);
}
Event::Mouse {