You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.scrollPosY = clamp(0, self.contentArea[4] - self.clientArea[4] - 1, self.scrollPosY)
Without the -1, the new 'maxed out' y value sometimes won't take effect.
I haven't tested if X scrolling is affected in the same way, or not.
The text was updated successfully, but these errors were encountered:
silentwings
changed the title
ScrollPanel doesn't clamp correctly if its given SetPos(x,y) with y larger than the allowable range
ScrollPanel doesn't clamp correctly if its given SetScrollPos(x,y) with y larger than the allowable range
Mar 12, 2016
https://github.com/jk3064/chiliui/blob/master/luaui/chili/chili/controls/scrollpanel.lua#L69 should be changed to
self.scrollPosY = clamp(0, self.contentArea[4] - self.clientArea[4] - 1, self.scrollPosY)
Without the -1, the new 'maxed out' y value sometimes won't take effect.
I haven't tested if X scrolling is affected in the same way, or not.
The text was updated successfully, but these errors were encountered: