Add this event binding in the JS console:
screenfull.onchange = function(){console.log( 'Am I fullscreen? ' + screenfull.isFullscreen ? 'Yes' : 'No' );};
And now enter and exit fullscreen mode. On exit it will also return that screenfull.isFullscreen is true (Yes). How can one make it return the proper value?
screenfull.isFullscreen doesn't return false when called in onchange event after exiting fullscreen
Go to the example page http://sindresorhus.com/screenfull.js/
Add this event binding in the JS console: screenfull.onchange = function(){console.log( 'Am I fullscreen? ' + screenfull.isFullscreen ? 'Yes' : 'No' );};
And now enter and exit fullscreen mode. On exit it will also return that screenfull.isFullscreen is true (Yes). How can one make it return the proper value?