Created
January 22, 2013 23:53
-
-
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
This file contains 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
// 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