Skip to content

Instantly share code, notes, and snippets.

@heygambo
Created August 24, 2011 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heygambo/1168525 to your computer and use it in GitHub Desktop.
Save heygambo/1168525 to your computer and use it in GitHub Desktop.
Firefox Sortable Scroll Bug Solution
var userAgent = navigator.userAgent.toLowerCase();
if(userAgent.match(/firefox/)) {
$( '#'+elm_id ).bind( "sortstart", function (event, ui) {
ui.helper.css('margin-top', $(window).scrollTop() );
});
$( '#'+elm_id ).bind( "sortbeforestop", function (event, ui) {
ui.helper.css('margin-top', 0 );
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment