#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Tue, 11 Feb 2020 18:03:23 +0100
changeset 6819 70fd62a15070
parent 6818 c0cabbabbf82
child 6820 e761ddb56247
#REFACTORING by cg class: ListView added: #sceduleNextAutoScroll refactored and bullet proof
ListView.st
--- a/ListView.st	Tue Feb 11 16:57:51 2020 +0100
+++ b/ListView.st	Tue Feb 11 18:03:23 2020 +0100
@@ -4277,6 +4277,17 @@
     "Modified: / 15-12-2010 / 10:12:41 / cg"
 !
 
+sceduleNextAutoScroll
+    |b t|
+
+    "/ care for a race in case any of autoScrollBlock/autoScrollDeltaT gets nilled in-between (via stopScrollSelect)
+    (b := autoScrollBlock) notNil ifTrue:[
+        (t := autoScrollDeltaT) notNil ifTrue:[
+            Processor addTimedBlock:b afterSeconds:t.
+        ]
+    ]
+!
+
 scrollDown
     "scroll down by one line; 
      this is called (among other) when the scrollbar's