Skip to content

Commit

Permalink
Simplify calculation further
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Nov 26, 2024
1 parent e26fa15 commit 1e4f2f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ui/floatbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export class FloatBar extends LitElement {
}

render() {
const left = (this.minFloat * 100).toFixed(0);
const left = this.minFloatPercentage.toFixed(0);
const markerLeft = (((this.float - this.minFloat) * 100) / (this.maxFloat - this.minFloat)).toFixed(3);
const dynamicWidth = (this.maxFloat - this.minFloat) * 100;
const dynamicWidth = this.maxFloatPercentage - this.minFloatPercentage;

const getConditionWidth = (condMin: number, condMax: number) => {
return (
Expand Down

0 comments on commit 1e4f2f8

Please sign in to comment.