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

Hide mouse on inactivity in fullscreen #333

Closed
hamedhemmati opened this issue Feb 14, 2013 · 3 comments
Closed

Hide mouse on inactivity in fullscreen #333

hamedhemmati opened this issue Feb 14, 2013 · 3 comments

Comments

@hamedhemmati
Copy link

Can we implement the mouse inactivity hidden in fullscreen mode. This can also solve the controls not hiding in fullscreen since the same inactivity function can also hide the controls.

Something like this function should do the trick.

var justHidden = false;

var j;
$(document).mousemove(function() {
    if (!justHidden) {
        justHidden = false;
        console.log('move');
        clearTimeout(j);
        $('html').css({cursor: 'default'});
        j = setTimeout(hide, 1000);
    }
});

function hide() {
$('html').css({cursor: 'none'});
justHidden = true;
setTimeout(function() {
justHidden = false;
}, 500);
}

@bdunn44
Copy link

bdunn44 commented Feb 22, 2013

Yes! I have been waiting for this functionality. Please make this change.

@hamedhemmati
Copy link
Author

Mouse and controls still won't hide when in fullscreen. I thought this was already committed?

@heff
Copy link
Member

heff commented Aug 9, 2013

This was just fixed in master via #672

@heff heff closed this as completed Aug 9, 2013
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants