Skip to content

Commit acdaa1c

Browse files
authored
fix: Slow down Slider wheel scroll (#378)
1 parent ebc5850 commit acdaa1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/components/src/slider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ pub fn Slider<'a>(cx: Scope<'a, SliderProps>) -> Element<'a> {
131131
let wheel_y = e.get_delta_y();
132132
let progress_x = (value / 100.0) * cx.props.width;
133133

134-
let mut x = progress_x + (wheel_y * 7.5);
134+
let mut x = progress_x + (wheel_y / 4.0);
135135
x = x.clamp(0.0, width);
136136

137137
let mut percentage = x / cx.props.width * 100.0;

0 commit comments

Comments
 (0)