kagof / intellij-pokemon-progress

A Pokémon themed progress bar for IntelliJ IDEA.

Home Page:https://plugins.jetbrains.com/plugin/15090-pokemon-progress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).