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

Add hide_button_when_fullscreen option #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

callumgare
Copy link

Zero obligation to merge this but I wanted the option to have the button hide itself after entering full screen (it's for a tablet dashboard which I can't use the normal kiosk apps for due to the age of the hardware/os so I have to use chrome) and I figured I may as well open a PR to merge upstream in case anyone else thinks this might be useful.

Ta!

@KTibow
Copy link
Owner

KTibow commented Apr 11, 2024

I might do some slight refactoring, but does it seem to work in its current form?

@callumgare
Copy link
Author

Go ahead and modify as much as you like. I’ve been using it in its current form and or though I haven’t done exhaustive testing I’ve done some basic checking of different situations and it seems to work as expected.

I put the code to make the button visible again in a fullscreen event rather than inside the toggleFullscreen since toggleFullscreen won’t be triggered for closing by using the esc key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants