- fix scrolling bug that allowed us to scroll even when we shouldnt.
authorcodewarrior <codewarrior>
Sun, 23 Oct 2005 20:45:34 +0000 (20:45 +0000)
committercodewarrior <codewarrior@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 23 Oct 2005 20:45:34 +0000 (20:45 +0000)
SVN revision: 17843

src/bin/e_fileman_smart.c

index 3e77f97..4c12eca 100644 (file)
@@ -340,7 +340,9 @@ e_fm_scroll_vertical(Evas_Object *object, double percent)
 
    if ((!object) || !(sd = evas_object_smart_data_get(object)))
      return;
-
+   
+   if(sd->max.h <= sd->h) return;
+   
    sd->position = percent;
 
    offsetpx = (percent) * (sd->max.h - sd->h);