mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
MenuPopup: better mouse scroll alignment
This commit is contained in:
parent
fdf4a0db4b
commit
a7d38d9608
@ -333,7 +333,7 @@ impl View for MenuPopup {
|
|||||||
} => {
|
} => {
|
||||||
// If the mouse is dragged, we always consume the event.
|
// If the mouse is dragged, we always consume the event.
|
||||||
fix_scroll = false;
|
fix_scroll = false;
|
||||||
let position = position.saturating_sub(offset);
|
let position = position.saturating_sub(offset + (0, 1));
|
||||||
self.scrollbase.drag(position);
|
self.scrollbase.drag(position);
|
||||||
}
|
}
|
||||||
Event::Mouse {
|
Event::Mouse {
|
||||||
|
Loading…
Reference in New Issue
Block a user