tree: use trunc instead of round when scrolling containers
This commit is contained in:
parent
b7831e1019
commit
ec9710983c
14 changed files with 70 additions and 6 deletions
|
|
@ -302,6 +302,13 @@ impl TestBackendMouse {
|
|||
));
|
||||
self.common.event(InputEvent::Frame);
|
||||
}
|
||||
|
||||
pub fn scroll_px(&self, dy: i32) {
|
||||
self.common.event(InputEvent::AxisSource(AxisSource::Wheel));
|
||||
self.common
|
||||
.event(InputEvent::Axis(Fixed::from_int(dy), ScrollAxis::Vertical));
|
||||
self.common.event(InputEvent::Frame);
|
||||
}
|
||||
}
|
||||
|
||||
pub struct TestBackendKb {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue