From 7f2b2e99f8cea8258b0a28ca40ce46abd5d17347 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 28 Oct 2011 12:06:01 +0200 Subject: GUI: Change scrollbar repeat handling from a timer proc to handleTickle. This should be less heavy on timer usage and makes sure no race conditions will occur. --- gui/widgets/scrollbar.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gui/widgets/scrollbar.h') diff --git a/gui/widgets/scrollbar.h b/gui/widgets/scrollbar.h index 3b248ce8a4..1c9f371cbc 100644 --- a/gui/widgets/scrollbar.h +++ b/gui/widgets/scrollbar.h @@ -49,6 +49,12 @@ protected: Part _draggingPart; int _sliderDeltaMouseDownPos; + enum { + kRepeatInitialDelay = 500, + kRepeatDelay = 100 + }; + uint32 _repeatTimer; + public: int _numEntries; int _entriesPerPage; -- cgit v1.2.3