Skip to content

Commit

Permalink
refacto
Browse files Browse the repository at this point in the history
  • Loading branch information
LrxGaelle committed Sep 6, 2023
1 parent 81f9fcb commit c19b15f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/BIMDataComponents/BIMDataSlider/BIMDataSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ export default {
this.$emit("update:modelValue", +event.target.value);
},
getTooltipPosition() {
const val = this.modelValue;
const min = this.min ? this.min : 0;
const max = this.max ? this.max : 100;
const newVal = Number(((val - min) * 100) / (max - min));
const newVal = Number(((this.modelValue - min) * 100) / (max - min));
this.tooltipPosition = `calc(${newVal}% + (${8 - newVal * 0.18}px))`;
},
},
Expand Down

0 comments on commit c19b15f

Please sign in to comment.