mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-30 00:41:42 +00:00
Only double scroll speed in feeds, not elsewhere
This commit is contained in:
parent
df8f88e780
commit
d9d698d5bf
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user