diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-10 13:43:41 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-10 13:43:41 +0300 |
commit | 22f1d02ff1d9c7ee89a80969f2122968b9b5e1fe (patch) | |
tree | ccf0174fbd9b2a57589731ac0e30765b445b6032 /src/ui/touch.c | |
parent | 4e8977f5734663956613caac058849273c4e5ac0 (diff) |
Touch: Improved hover behavior
Scrolling must prevent the hover state from being updated both in documents and lists.
Diffstat (limited to 'src/ui/touch.c')
-rw-r--r-- | src/ui/touch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/touch.c b/src/ui/touch.c index bf217301..87bb7478 100644 --- a/src/ui/touch.c +++ b/src/ui/touch.c | |||
@@ -234,6 +234,7 @@ static void update_TouchState_(void *ptr) { | |||
234 | const int elapsed = nowTime - touch->startTime; | 234 | const int elapsed = nowTime - touch->startTime; |
235 | if (elapsed > 25) { | 235 | if (elapsed > 25) { |
236 | clearWidgetMomentum_TouchState_(d, touch->affinity); | 236 | clearWidgetMomentum_TouchState_(d, touch->affinity); |
237 | clear_Array(d->moms); /* stop all ongoing momentum */ | ||
237 | } | 238 | } |
238 | if (elapsed > 50 && !touch->isTapBegun) { | 239 | if (elapsed > 50 && !touch->isTapBegun) { |
239 | /* Looks like a possible tap. */ | 240 | /* Looks like a possible tap. */ |