Skip to content

Commit 9616294

Browse files
tirixluleyleo
authored andcommitted
Fix for Issue 1491 : typo in scroll_component.rs
1 parent 69a8bcf commit 9616294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

druid/src/scroll_component.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl ScrollComponent {
309309
ctx.set_handled();
310310
}
311311
BarHeldState::Horizontal(offset) => {
312-
let scale_x = viewport_size.height / content_size.width;
312+
let scale_x = viewport_size.width / content_size.width;
313313
let bounds = self
314314
.calc_horizontal_bar_bounds(port, env)
315315
.unwrap_or(Rect::ZERO);

0 commit comments

Comments
 (0)