We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a8bcf commit 9616294Copy full SHA for 9616294
druid/src/scroll_component.rs
@@ -309,7 +309,7 @@ impl ScrollComponent {
309
ctx.set_handled();
310
}
311
BarHeldState::Horizontal(offset) => {
312
- let scale_x = viewport_size.height / content_size.width;
+ let scale_x = viewport_size.width / content_size.width;
313
let bounds = self
314
.calc_horizontal_bar_bounds(port, env)
315
.unwrap_or(Rect::ZERO);
0 commit comments