delay activating webpage commander window when cursor is beam (user might be typing)

This commit is contained in:
Kang Yu 2025-04-27 22:11:42 -07:00
parent 7dc0cbee82
commit 40f8f5cefd

View file

@ -907,6 +907,9 @@ namespace PersistentWindows.Common
else if (hCursor == Cursors.IBeam.Handle) else if (hCursor == Cursors.IBeam.Handle)
{ {
Visible = false; Visible = false;
if (Math.Abs(cursorPos.X - lastCursorPos.X) < 3 && Math.Abs(cursorPos.Y - lastCursorPos.Y) < 3)
StartAliveTimer(11, 2000);
else
StartAliveTimer(11, 1000); StartAliveTimer(11, 1000);
return; return;
} }