MalisisCore

48M Downloads

Most (all?) implementations of IScrollable will return nonsense values for offset if size >= contentSize (including NaN)

Barteks2x opened this issue ยท 2 comments

commented

The NaN value is especially problematic as it may cause strange behavior in code that doesn't expect NaN. For size > contentSize a negative value will be returned which isn't as bad as NaN.

The expected way would be to return zero as there is no offset in that case.

commented

There is still NaN when size == contentSize

commented

Fixed in the next update.