elm/scrollable: Fix count of mouse move events.

It should use just the events that really happened (after the mouse move
starting timestamp).
This commit is contained in:
Rafael Antognolli 2013-06-05 20:01:09 -03:00
parent cc19e3948d
commit 678c41b289
1 changed files with 1 additions and 1 deletions

View File

@ -2862,6 +2862,7 @@ _elm_scroll_hold_animator(void *data)
if (dt > twin)
{
i--;
count--;
break;
}
x = sid->down.history[i].x;
@ -2878,7 +2879,6 @@ _elm_scroll_hold_animator(void *data)
count++;
}
}
count = i;
if (count >= 2)
{
double dtsum = 0.0, tadd, maxdt;