antognolli pushed a commit to branch master.
commit 14a18b55a19284fc75a9871bb049e723cc1cd2e2
Author: Rafael Antognolli <[email protected]>
Date: Wed Jun 5 20:01:09 2013 -0300
elm/scrollable: Fix count of mouse move events.
It should use just the events that really happened (after the mouse move
starting timestamp).
---
src/lib/elm_interface_scrollable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/elm_interface_scrollable.c
b/src/lib/elm_interface_scrollable.c
index 94c4307..71a862b 100644
--- a/src/lib/elm_interface_scrollable.c
+++ b/src/lib/elm_interface_scrollable.c
@@ -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;
--
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j