Fixed: Use target_stepy to calculate dy for scrolling
--HG-- branch : develop
This commit is contained in:
parent
a62c8eefd4
commit
ebbb270bc1
1 changed files with 6 additions and 0 deletions
|
@ -1226,6 +1226,12 @@ namespace NLGUI
|
||||||
if(hReal <= maxHReal)
|
if(hReal <= maxHReal)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (_TargetStepY > 1)
|
||||||
|
{
|
||||||
|
sint sign = (0 < dy) - (dy < 0);
|
||||||
|
dy = sign * max(1, (dy / _TargetStepY)) * _TargetStepY;
|
||||||
|
}
|
||||||
|
|
||||||
// compute the new ofsY.
|
// compute the new ofsY.
|
||||||
sint32 ofsY= _Target->getOfsY();
|
sint32 ofsY= _Target->getOfsY();
|
||||||
ofsY+= dy;
|
ofsY+= dy;
|
||||||
|
|
Loading…
Reference in a new issue