Created
August 24, 2011 16:52
-
-
Save heygambo/1168525 to your computer and use it in GitHub Desktop.
Firefox Sortable Scroll Bug Solution
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
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