Progress Bar changing from indeterminate to determinate can cause bar to load "backwards"
kagof opened this issue · comments
It turns out that IntelliJ will sometimes change a progress bar from "indeterminate" to "determinate". If this happens when our velocity is negative, then the progress bar will appear to be filled in from the left, and progress will "decrease" back towards the left.
Offhand, the best/easiest option to fix this will likely be just to put a check in paintDeterminate
, to set velocity = 1
and pos = 0
(might as well reset the position, too).