Skip to content

Commit

Permalink
fix: bug when holding a mouse key and leaving + or - button
Browse files Browse the repository at this point in the history
  • Loading branch information
builder555 committed Sep 21, 2024
1 parent 639940c commit f20a562
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/components/TheWorkView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ const setExactTemperature = (temp) => {
@mousedown.left="onChangeTempBtnDown(-1)"
@touchend="onChangeTempBtnUp"
@mouseup="onChangeTempBtnUp"
@mouseleave="onChangeTempBtnUp"
@touchleave="onChangeTempBtnUp"
>
<i class="fas fa-minus"></i>
</button>
Expand All @@ -90,6 +92,8 @@ const setExactTemperature = (temp) => {
@mousedown.left="onChangeTempBtnDown(1)"
@touchend="onChangeTempBtnUp"
@mouseup="onChangeTempBtnUp"
@touchleave="onChangeTempBtnUp"
@mouseleave="onChangeTempBtnUp"
>
<i class="fas fa-plus"></i>
</button>
Expand Down

0 comments on commit f20a562

Please sign in to comment.