From f20a562d90b964c72ab3e24c3cfbb91451066bf2 Mon Sep 17 00:00:00 2001
From: builder555 <85308587+builder555@users.noreply.github.com>
Date: Fri, 20 Sep 2024 22:06:49 -0400
Subject: [PATCH] fix: bug when holding a mouse key and leaving + or - button
---
ui/src/components/TheWorkView.vue | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ui/src/components/TheWorkView.vue b/ui/src/components/TheWorkView.vue
index ea165c80..a6113356 100644
--- a/ui/src/components/TheWorkView.vue
+++ b/ui/src/components/TheWorkView.vue
@@ -80,6 +80,8 @@ const setExactTemperature = (temp) => {
@mousedown.left="onChangeTempBtnDown(-1)"
@touchend="onChangeTempBtnUp"
@mouseup="onChangeTempBtnUp"
+ @mouseleave="onChangeTempBtnUp"
+ @touchleave="onChangeTempBtnUp"
>
@@ -90,6 +92,8 @@ const setExactTemperature = (temp) => {
@mousedown.left="onChangeTempBtnDown(1)"
@touchend="onChangeTempBtnUp"
@mouseup="onChangeTempBtnUp"
+ @touchleave="onChangeTempBtnUp"
+ @mouseleave="onChangeTempBtnUp"
>