1
0
Fork 0
forked from wry/wry

input: rename axix_smooth to axis_px

This commit is contained in:
Julian Orth 2022-05-27 17:02:44 +02:00
parent 64416d417b
commit 20f0fba553
7 changed files with 18 additions and 21 deletions

View file

@ -318,9 +318,9 @@ impl TestBackendMouse {
pub fn scroll_px(&self, dy: i32) {
self.common.event(InputEvent::AxisSource {
source: AxisSource::Wheel,
source: AxisSource::Finger,
});
self.common.event(InputEvent::AxisSmooth {
self.common.event(InputEvent::AxisPx {
dist: Fixed::from_int(dy),
axis: ScrollAxis::Vertical,
});