Skip to content

Add hide_button_when_fullscreen option#9

Open
callumgare wants to merge 1 commit into
KTibow:masterfrom
callumgare:master
Open

Add hide_button_when_fullscreen option#9
callumgare wants to merge 1 commit into
KTibow:masterfrom
callumgare:master

Conversation

@callumgare

Copy link
Copy Markdown

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

KTibow commented Apr 11, 2024

Copy link
Copy Markdown
Owner

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

@callumgare

Copy link
Copy Markdown
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