fix: prevent setting bar too left and getting off the left edge
Merge pull request #10 from larryzhao/fix

fix: prevent setting bar too left and getting off the left edge