_elm_config->thumbscroll_bounce_friction = 0.5;
_elm_config->thumbscroll_bounce_enable = 1;
_elm_config->page_scroll_friction = 0.5;
+ _elm_config->bring_in_scroll_friction = 0.5;
_elm_config->zoom_friction = 0.5;
_elm_config->scale = 1.0;
_elm_config->font_hinting = 2;
if (s) _elm_config->thumbscroll_friction = atof(s);
s = getenv("ELM_PAGE_SCROLL_FRICTION");
if (s) _elm_config->page_scroll_friction = atof(s);
+ s = getenv("ELM_BRING_IN_SCROLL_FRICTION");
+ if (s) _elm_config->bring_in_scroll_friction = atof(s);
s = getenv("ELM_ZOOM_FRICTION");
if (s) _elm_config->zoom_friction = atof(s);
double thumbscroll_friction;
double thumbscroll_bounce_friction;
double page_scroll_friction;
+ double bring_in_scroll_friction;
double zoom_friction;
int thumbscroll_bounce_enable;
double scale;
x = nx;
if (x < 0) x = 0;
else if ((x + w) > cw) x = cw - w;
- _smart_scrollto_x(sd, _elm_config->page_scroll_friction, x);
+ _smart_scrollto_x(sd, _elm_config->bring_in_scroll_friction, x);
y = ny;
if (y < 0) y = 0;
else if ((y + h) > ch) y = ch - h;
- _smart_scrollto_y(sd, _elm_config->page_scroll_friction, y);
+ _smart_scrollto_y(sd, _elm_config->bring_in_scroll_friction, y);
}
/* local subsystem functions */