internet explorer 8 - Programmatically starting a jQuery UI sortable drag ? - Issues with IE8 compatibility -
i'm using jquery ui sortable behavior , have come upon situation in needed start sortable drag behavior interaction element other original handle (which not visible @ time). have managed put way achieve suggestions in posts , use of jquery.simulate.js (used run official jqui tests) , can procedurally start sortable drag process in pretty browsers except ie8 , below, simulating events so:
item.simulate('mousedown',pos).simulate('mousemove',{ clientx: pos.clientx+1, clienty: pos.clienty});
problem: in ie8 (or below), after interaction outside 'handle' , simulation of mousedown , mousemove events, drag indeed correctly started, user moves mouse in way/shape/form, drag stops or cancels if 'mouseup' event had ocurred finalize it. highly think due fundamental difference in old fireevent (ie8-) method vs dispatchevent else uses, cannot quite figure out how to, or if it's possible prevent it.
what i'm looking snippets of may done correct or suggestions why happening , if can have workaround of sort prevent cancelling (such behavior occurs in other browser using dispatchevent instead of fireevent).
have put small example of success (any recent browser) or failure of situation described: demo
tl;dr: have put small way procedurally start jqui sortable drag (through jquery.simulate.js, link above), fails work or cancels in ie8-. need guidance or suggestions how overcome that. check above demo
Comments
Post a Comment