fix(scrollable): pixel scroll direction

This commit is contained in:
Ashley Wulber 2026-03-05 16:09:56 -05:00 committed by Ashley Wulber
parent a839760e2a
commit b509922bc8

View file

@ -1033,10 +1033,9 @@ where
-movement * 60.0
}
mouse::ScrollDelta::Pixels { x, y } => {
Vector::new(x, y)
-Vector::new(x, y)
}
};
state.scroll(
self.direction.align(delta),
bounds,
@ -1197,7 +1196,6 @@ where
};
let scroll_factor = time_delta.as_secs_f32();
state.scroll(
self.direction.align(Vector::new(
delta.x.signum()