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,7 +907,10 @@ namespace PersistentWindows.Common
else if (hCursor == Cursors.IBeam.Handle)
{
Visible = false;
StartAliveTimer(11, 1000);
if (Math.Abs(cursorPos.X - lastCursorPos.X) < 3 && Math.Abs(cursorPos.Y - lastCursorPos.Y) < 3)
StartAliveTimer(11, 2000);
else
StartAliveTimer(11, 1000);
return;
}
else if (hCursor == Cursors.Cross.Handle || handCursor)