jquery ui - enable scrolling on parent while dragging child element -
jquery ui - enable scrolling on parent while dragging child element -
here have parent div table consists of 3 sites a,b , c.each site consists of info can dragged other sites.i have done draggable part jquery ui.any way dragging part went well.the height of parent div static 1 scroll property set true.so due this, when drag element parent divs scroll doesnt work , wont allow place dragged element @ right position.i googled , got codes enable scrolling part while dragging dragged element not visible,it goes along scroll.pls seek fiddle u clear thought of meant , pls help me....fiddle
drag: function (e) { var ismoving = false; if ((e.pagey - offset.top) <= distance) { ismoving = true; clearinetervals(); inttophandler = setinterval(function () { parentdiv.scrolltop(parentdiv.scrolltop() - step) }, timer); } if (e.pagey >= (offsetheight - distance)) { ismoving = true; clearinetervals(); intbottomhandler = setinterval(function () { parentdiv.scrolltop(parentdiv.scrolltop() + step) }, timer); } }
jquery-ui jquery-ui-draggable
Comments
Post a Comment