Add vim bindings for hover
Allow scrolling in hover popover
This commit is contained in:
parent
67d9abc00f
commit
a6c0ee472c
11 changed files with 1058 additions and 1006 deletions
|
@ -319,6 +319,17 @@ impl Element for Flex {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if !handled {
|
||||
if let &Event::MouseMoved { position, .. } = event {
|
||||
// If this is a scrollable flex, and the mouse is over it, eat the scroll event to prevent
|
||||
// propogating it to the element below.
|
||||
if self.scroll_state.is_some() && bounds.contains_point(position) {
|
||||
handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
handled
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue