forked from enlightenment/efl
elm_interface_scrollable: fix wrong pointer reference
Reviewers: akanad Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6955
This commit is contained in:
parent
5f0002ce69
commit
b224cecf90
|
@ -2640,8 +2640,8 @@ _elm_scroll_momentum_calc(int dx, int dy, double dt, double *vx, double *vy, int
|
||||||
sign_dx = (dx > 0) - (dx < 0);
|
sign_dx = (dx > 0) - (dx < 0);
|
||||||
sign_dy = (dy > 0) - (dy < 0);
|
sign_dy = (dy > 0) - (dy < 0);
|
||||||
|
|
||||||
if(vx) sign_vx = (vx > 0) - (vx < 0);
|
if (vx) sign_vx = (*vx > 0) - (*vx < 0);
|
||||||
if(vy) sign_vy = (vy > 0) - (vy < 0);
|
if (vy) sign_vy = (*vy > 0) - (*vy < 0);
|
||||||
|
|
||||||
// scale factor must be below 1.0
|
// scale factor must be below 1.0
|
||||||
if ( r >= 1 ) r = 0.99;
|
if ( r >= 1 ) r = 0.99;
|
||||||
|
|
Loading…
Reference in New Issue