r = 1.0;
if (sid->down.momentum_animator)
{
- ed = fabs(sid->down.dx * (_elm_config->thumbscroll_friction +
- sid->down.extra_time) - sid->down.b0x);
- md = fabs(_elm_config->thumbscroll_friction * 5 * w);
+ ed = abs((int)(sid->down.dx * (_elm_config->thumbscroll_friction +
+ sid->down.extra_time) - sid->down.b0x));
+ md = abs((int)(_elm_config->thumbscroll_friction * 5 * w));
if (ed > md) r = (double)(md) / (double)ed;
}
x = sid->down.b2x + (int)((double)(dx - odx) * r);
r = 1.0;
if (sid->down.momentum_animator)
{
- ed = fabs(sid->down.dy * (_elm_config->thumbscroll_friction +
- sid->down.extra_time) - sid->down.b0y);
- md = fabs(_elm_config->thumbscroll_friction * 5 * h);
+ ed = abs((int)(sid->down.dy * (_elm_config->thumbscroll_friction +
+ sid->down.extra_time) - sid->down.b0y));
+ md = abs((int)(_elm_config->thumbscroll_friction * 5 * h));
if (ed > md) r = (double)(md) / (double)ed;
}
y = sid->down.b2y + (int)((double)(dy - ody) * r);