Created
November 21, 2014 18:13
-
-
Save icecreammatt/b518ce4897c8644c3e76 to your computer and use it in GitHub Desktop.
Enyo video player mouse auto hide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //* Resets the timeout, or wakes the overlay. | |
| mousemove: function(inSender, inEvent) { | |
| if (this.isOverlayShowing()) { | |
| this.resetAutoTimeout(); | |
| } else if (this.shakeAndWake) { | |
| this.showFSControls(); | |
| } | |
| }, | |
| //* Sets _this.visible_ to true and clears hide job. | |
| showFSControls: function(inSender, inEvent) { | |
| this.showFSInfo(); | |
| this.showFSBottomControls(); | |
| }, | |
| hideFSControls: function() { | |
| if (this.isOverlayShowing()) { | |
| this.hideFSInfo(); | |
| this.hideFSBottomControls(); | |
| } | |
| this.stopJob("autoHide"); | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment