Skip to content

Instantly share code, notes, and snippets.

@devgeeks
Created January 22, 2013 23:53
Show Gist options
  • Save devgeeks/4600088 to your computer and use it in GitHub Desktop.
Save devgeeks/4600088 to your computer and use it in GitHub Desktop.
A two second hack fix for the menusheet extension allowing scrolling of the entire container when open
// Hax fix for container scrolling while menusheet is open.
$('#jqt').on('scroll', function (e) {
// Snap back if not after about the half way point...
if (this.scrollLeft < ($(window).width() / 4)) {
this.scrollLeft = 0;
}
// Or close if it is...
else {
$('#menusheet').menusheet('hide');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment