« get me outta code hell

update tui-lib; change wheel mode in autoscroll - 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:
authorFlorrie <towerofnix@gmail.com>2020-04-23 16:18:51 -0300
committerFlorrie <towerofnix@gmail.com>2020-04-23 16:18:51 -0300
commit980082e13c18dd9d0def4bc1508b465fb6b2c0eb (patch)
treeff714992f0d530c3095bdca9c00d35c816dad9ad /ui.js
parent50c0ebc87d720a015826d1975aa50e66a8f3d513 (diff)
update tui-lib; change wheel mode in autoscroll
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'
     }
   }