Click here to Skip to main content
15,895,803 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have div with dragging and scrolling enabled. Before enabling the dragging the scrolling works properly as i make the div draggable the scrolling give some weird behavior.When i click on scroll bar it seems like scrolling event doesn't finish and the div keep dragging around.Problem only on IE browser.

JavaScript
function test() {
    $('#dvDrag').draggable({
        start: function (event, ui) { },
        stop: function (event, ui) { }

    });
}

HTML
<input  type="button" onclick="test()"/>
<div id="dvDrag" style="width:100px; height:150px; overflow:scroll">
    test drag<br />
    test drag<br />
    test drag<br />
    test drag<br />
    test drag<br />
    test drag<br />
    test drag<br />
    test drag<br />
    test drag<br />
    test drag<br />
    </div>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900