From cddb167638171aa8df83aec07dfb1f671c06eabd Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 23 Jul 2024 14:42:01 -0700 Subject: [PATCH] fixed bug where lifiting mouse outside numbers --- static/index.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/static/index.html b/static/index.html index fce2b27..ae13a01 100644 --- a/static/index.html +++ b/static/index.html @@ -121,16 +121,22 @@ } function handleMouseUp(lineId) { - lineId = lineId + 1; - isDragging = false; + if(!isDragging){ + return; + } + if(isNaN(lineId)){ + lineId = app.selectedLines.endLine; + }else { + lineId = lineId + 1; + } updateWindowLineHash(lineId); - + isDragging = false; } - +
@@ -151,8 +157,8 @@
-
- +
+