metafizzy / flickity-fullscreen

Enable fullscreen view for Flickity carousels
46 stars 17 forks source link

Add fullscreenChange event #4

Closed hashchange closed 6 years ago

hashchange commented 6 years ago

I have added a fullscreenChange event. A boolean isFullscreen status is sent along to the handler.

Just observing clicks on the fullscreen button didn't work well, particularly in iOS (frequently failed to fire). This is cleaner, and just a single line anyway.

desandro commented 6 years ago

Thanks so much for this contribution! I like it!

๐ŸŽ‰๐ŸŽ‰Congrats on your first merged Pull Request!๐ŸŽ‰๐ŸŽ‰

hashchange commented 6 years ago

That was quick! Thanks a lot!