more clearly communicate intent for scroll_bottom
This commit is contained in:
parent
ff87505771
commit
4a3df7a05b
1 changed files with 1 additions and 1 deletions
|
|
@ -627,7 +627,7 @@ pub const App = struct {
|
||||||
return ctx.consumeAndRedraw();
|
return ctx.consumeAndRedraw();
|
||||||
},
|
},
|
||||||
.scroll_bottom => {
|
.scroll_bottom => {
|
||||||
self.scroll_offset = 999;
|
self.scroll_offset = std.math.maxInt(usize) / 2; // clamped during draw...divide by 2 to avoid overflow if arithmetic is done
|
||||||
if (self.active_tab == .portfolio and self.portfolio_rows.items.len > 0)
|
if (self.active_tab == .portfolio and self.portfolio_rows.items.len > 0)
|
||||||
self.cursor = self.portfolio_rows.items.len - 1;
|
self.cursor = self.portfolio_rows.items.len - 1;
|
||||||
if (self.active_tab == .options and self.options_rows.items.len > 0)
|
if (self.active_tab == .options and self.options_rows.items.len > 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue