From 88d42caf4aaa5aa5a235b8f434704bbe8f6a9f92 Mon Sep 17 00:00:00 2001 From: Florrie Date: Tue, 27 Aug 2019 17:04:09 -0300 Subject: Keep selected item in view (wrt shift selecting) --- todo.txt | 9 +++++++++ ui.js | 1 + 2 files changed, 10 insertions(+) diff --git a/todo.txt b/todo.txt index 0a3d5e6..af17769 100644 --- a/todo.txt +++ b/todo.txt @@ -274,3 +274,12 @@ TODO: Work out frame rate shenanigans. :) This is a huge task, though (to get it exactly right) - to begin, just make it so telnet and ordinary clients get different framerates. (Done!) + +TODO: Remember the scroll position of each group. This should probably be done + per-listing, but make sure the data disappears when the listing is + destroyed (e.g. tab closed)! Have maps on the listings instead of the + grouplikes themselves. + +TODO: Apparently shift-up/down selecting doesn't keep the selected item within + the scroll view. Fix that. + (Done!) diff --git a/ui.js b/ui.js index 3102dfb..3f9611e 100644 --- a/ui.js +++ b/ui.js @@ -1570,6 +1570,7 @@ class GrouplikeListingForm extends ListScrollForm { } else { this.previousInput() } + this.scrollSelectedElementIntoView() } const getItem = () => { -- cgit 1.3.0-6-gf8a5