diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-24 08:45:16 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-24 08:45:16 +0300 |
commit | 0c99a388871a0c4c9102c162a65c03c2f3660cce (patch) | |
tree | 57b13d910d7a79f8cedca3ed6d6e6ea419a581cd /src/ui/util.c | |
parent | 859fad2c6d5013ace7fcb749b591468dd0b65612 (diff) |
Adjusted smooth scroll speed when using mouse wheel
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 27950c5e..603b3213 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -221,6 +221,10 @@ void stop_Anim(iAnim *d) { | |||
221 | d->when = d->due = SDL_GetTicks(); | 221 | d->when = d->due = SDL_GetTicks(); |
222 | } | 222 | } |
223 | 223 | ||
224 | float pos_Anim(const iAnim *d) { | ||
225 | return pos_Anim_(d, frameTime_Window(get_Window())); | ||
226 | } | ||
227 | |||
224 | float value_Anim(const iAnim *d) { | 228 | float value_Anim(const iAnim *d) { |
225 | return valueAt_Anim_(d, frameTime_Window(get_Window())); | 229 | return valueAt_Anim_(d, frameTime_Window(get_Window())); |
226 | } | 230 | } |