Opened 3 years ago
#17077 new bug
BScrollBar arrows dont respect range (when min = 0)
Reported by: | smallstepforman | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Kits/Interface Kit | Version: | R1/beta2 |
Keywords: | BSCrollBar | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
BScrollBar in MouseDown() assigns a temporary float scrollValue = 0.0, and then determines a hitcheck on the arrows. It decrements scrollValue for left arrow case ARROW1:
scrollValue = -buttonStepSize; break;
And then later on checks if (scrollValue != 0.0) in order to process the action.
This forces developers to keep a valid range from 1 - max, instead of from 0. The default for scrollValue should not be zero since it prevents min range from being zero, even though allowed the the BeBook API.
Note:
See TracTickets
for help on using tickets.