elm/scrollable: Fix count of mouse move events.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 5 Jun 2013 23:01:09 +0000 (20:01 -0300)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 6 Jun 2013 17:24:37 +0000 (14:24 -0300)
It should use just the events that really happened (after the mouse move
starting timestamp).

src/lib/elm_interface_scrollable.c

index 94c4307..71a862b 100644 (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;