Only double scroll speed in feeds, not elsewhere

This commit is contained in:
Mike Dilger 2023-02-18 09:31:36 +13:00
parent df8f88e780
commit d9d698d5bf
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ fn render_a_feed(
.id_source(scroll_area_id)
.override_scroll_delta(Vec2 {
x: 0.0,
y: app.current_scroll_offset,
y: app.current_scroll_offset * 2.0, // double speed
})
.show(ui, |ui| {
let bgcolor = if ctx.style().visuals.dark_mode {

View File

@ -374,7 +374,7 @@ impl eframe::App for GossipUi {
});
// Accelerate scroll two twice as far as requested
requested_scroll *= 2.0;
// requested_scroll *= 2.0;
// Distribute any scroll delta from this frame into future frames
if requested_scroll > 0.0 {