1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-04 23:30:24 +00:00

Prevents toggling items with accidental double-clicks (Watch List).

This commit is contained in:
FellippeHeitor 2021-08-06 23:11:17 -03:00
parent 445f192848
commit 08954e0039

View file

@ -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