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