return EINA_TRUE;
}
+
+// TIZEN_ONLY(20161125): Limit coordination when there is just one page
+static void
+_elm_scroll_down_coord_limit(Elm_Scrollable_Smart_Interface_Data *sid,
+ Evas_Coord *x,
+ Evas_Coord *y)
+{
+ Evas_Coord w = 0, h = 0;
+
+ evas_object_geometry_get(sid->pan_obj, NULL, NULL, &w, &h);
+
+ if (sid->loop_h &&
+ ((*x + sid->content_info.w) % sid->content_info.w - w < 0) &&
+ ((*x + sid->content_info.w) % sid->content_info.w + w > sid->content_info.w))
+ *x = 0;
+ if (sid->loop_v &&
+ ((*y + sid->content_info.h) % sid->content_info.h - h < 0) &&
+ ((*y + sid->content_info.h) % sid->content_info.h + h > sid->content_info.h))
+ *y = 0;
+}
+// END
+
static void
_elm_scroll_down_coord_eval(Elm_Scrollable_Smart_Interface_Data *sid,
Evas_Coord *x,
else if (!sid->loop_v && (sid->content_info.h - sid->h + miny) < *y)
*y += (sid->content_info.h - sid->h + miny - *y) *
_elm_config->thumbscroll_border_friction;
-}
-
+ // TIZEN_ONLY(20161125): Limit coordination when there is just one page
+ _elm_scroll_down_coord_limit(sid, x, y);
+ // END
+}
//TIZEN ONLY : for scroll smooth algorithm
#define iround(x) ((x)>=0?(int)((x)+0.5):(int)((x)-0.5))