Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improved autolock to only keep wallet unlocked while user is actively interacting with it #1699

Merged
merged 4 commits into from
Nov 18, 2024

Conversation

alecdwm
Copy link
Member

@alecdwm alecdwm commented Nov 15, 2024

Users are surprised when their wallet never autolocks - but the current behaviour intentionally only autolocks the wallet when all wallet UI has been closed.

This PR changes it that so the the wallet will autolock even if the UI is open (e.g. in a background tab) - provided that the user is not actively interacting with the UI (as measured by keydown / keypress / keyup / mousedown / mouseup / mousemove / touchstart / touchend / touchmove events).

NOTE: The embedded popup retains the old behaviour: the wallet will never lock for as long as the embedded popup is open.

@alecdwm alecdwm added the enhancement New feature or request label Nov 15, 2024
@alecdwm alecdwm requested a review from chidg November 15, 2024 11:52
@alecdwm alecdwm self-assigned this Nov 15, 2024
@alecdwm alecdwm enabled auto-merge (squash) November 16, 2024 03:58
Copy link
Contributor

@chidg chidg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alecdwm alecdwm merged commit 55a6a0e into dev Nov 18, 2024
6 checks passed
@alecdwm alecdwm deleted the fix/autolock-improvements branch November 18, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants