elm ifrace scrollable - fix uninitialized values on scroll asjust
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 24 Nov 2017 14:52:08 +0000 (23:52 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 24 Nov 2017 14:52:08 +0000 (23:52 +0900)
dragable values were invalid (not fetched) so vx/y were junk and this
was making decisions based on that. guarantee it to be 0.

@fix

src/lib/elementary/elm_interface_scrollable.c

index 522deba..66aaf18 100644 (file)
@@ -794,9 +794,9 @@ _elm_scroll_scroll_bar_size_adjust(Elm_Scrollable_Smart_Interface_Data *sid)
    sid->size_adjust_recurse++;
    if ((sid->content) || (sid->extern_pan))
      {
-        Evas_Coord x, y, w, h, mx = 0, my = 0, vw = 0, vh = 0, px, py,
-                   minx = 0, miny = 0;
-        double vx, vy, size;
+        Evas_Coord x, y, w, h, mx = 0, my = 0, vw = 0, vh = 0,
+                   px = 0, py = 0, minx = 0, miny = 0;
+        double vx = 0.0, vy = 0.0, size;
 
         edje_object_calc_force(sid->edje_obj);
         edje_object_part_geometry_get