Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.x
-
None
Description
Currently, this is somewhat possible by doing something like stepSize: down.pressed ? downStepSize : upStepSize, but this only works when pressing the up or down buttons with the mouse or the up or down arrow keys. It does not work when using the mouse wheel to change the value or when calling increase() or decrease() directly.
An example of a use case would be a zoom spinbox for a viewport where the increment by which you zoom changes based on whether you are zooming in or out and how zoomed in you are. If you want to be able to zoom in 1.25x the current zoom level when you increment, you would need to zoom out 0.8x when you decrement in order to go back to where you started (1*1.25=1.25, 1.25*0.8=1).