Add multidirectional scrolling capabilities to the existing Scrollable.
This commit is contained in:
parent
a6d0d5773f
commit
d91f4f6aa7
12 changed files with 1148 additions and 576 deletions
|
|
@ -925,6 +925,30 @@ impl scrollable::StyleSheet for Theme {
|
|||
Scrollable::Custom(custom) => custom.dragging(self),
|
||||
}
|
||||
}
|
||||
|
||||
fn active_horizontal(&self, style: &Self::Style) -> scrollable::Scrollbar {
|
||||
match style {
|
||||
Scrollable::Default => self.active(style),
|
||||
Scrollable::Custom(custom) => custom.active_horizontal(self),
|
||||
}
|
||||
}
|
||||
|
||||
fn hovered_horizontal(&self, style: &Self::Style) -> scrollable::Scrollbar {
|
||||
match style {
|
||||
Scrollable::Default => self.hovered(style),
|
||||
Scrollable::Custom(custom) => custom.hovered_horizontal(self),
|
||||
}
|
||||
}
|
||||
|
||||
fn dragging_horizontal(
|
||||
&self,
|
||||
style: &Self::Style,
|
||||
) -> scrollable::Scrollbar {
|
||||
match style {
|
||||
Scrollable::Default => self.hovered_horizontal(style),
|
||||
Scrollable::Custom(custom) => custom.dragging_horizontal(self),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The style of text.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue