« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index a21bf3c..de01ace 100644
--- a/ui.js
+++ b/ui.js
@@ -1756,8 +1756,10 @@ class GrouplikeListingElement extends Form {
   toggleAutoscroll() {
     if (this.autoscrollOffset === null) {
       this.autoscrollOffset = this.form.curIndex - this.form.scrollItems
+      this.form.wheelMode = 'selection'
     } else {
       this.autoscrollOffset = null
+      this.form.wheelMode = 'scroll'
     }
   }