From 08954e00399ad9828865a5e360674f4b6c19501e Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Fri, 6 Aug 2021 23:11:17 -0300 Subject: [PATCH] Prevents toggling items with accidental double-clicks (Watch List). --- source/ide/ide_methods.bas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 350e23443..307e150ec 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -7923,7 +7923,7 @@ FUNCTION idevariablewatchbox$(currentScope$, filter$, selectVar) END IF IF mCLICK AND focus = 2 THEN 'list click - IF timeElapsedSince(lastClick!) < .3 THEN + IF timeElapsedSince(lastClick!) < .3 AND clickedItem = o(varListBox).sel THEN IF mX < p.x + doubleClickThreshold OR IdeDebugMode = 0 THEN GOTO toggleWatch ELSE @@ -7931,6 +7931,7 @@ FUNCTION idevariablewatchbox$(currentScope$, filter$, selectVar) END IF END IF lastClick! = TIMER + IF o(varListBox).sel > 0 THEN clickedItem = o(varListBox).sel _CONTINUE END IF