-
Notifications
You must be signed in to change notification settings - Fork 22
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
chore(ui): implement listening to outside app activity #30
chore(ui): implement listening to outside app activity #30
Conversation
500f1ec
to
2fb1593
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really a fan of doing this in javascript. How about rather having a task in rust check the mouse movement and then send an event to the javascript "User is idle". Then the autominer can carry on from there. You could probably actually just do the whole start/stop mining in rust as well
So you would like to leave only switching auto mining state in javascript and rest of the current logic move to rust ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and working
Description
Change autominer behavior so it would listen to user mouse movement outside app context
Motivation and Context
How Has This Been Tested?
Manually
What process can a PR reviewer use to test or verify this change?
Turn on autominer and position mouse outside app window then be idle for 30 seconds, minining should by then start and if you move mouse it should stop
Breaking Changes