Skip to content

Instantly share code, notes, and snippets.

@icecreammatt
Created November 21, 2014 18:13
Show Gist options
  • Save icecreammatt/b518ce4897c8644c3e76 to your computer and use it in GitHub Desktop.
Save icecreammatt/b518ce4897c8644c3e76 to your computer and use it in GitHub Desktop.
Enyo video player mouse auto hide
//* 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