this 'is possible' type of question, because after day of testing options, not sure is.
we have list of item within scrollable div, each of needs touch draggable. turning on drag , drop each time break ability scroll list, swipe scroll gets interpreted drag event well. easiest option if add drag handle each item, have little ui space available on these items, , powers hoping not squeeze things tighter add touch hit area said handle.
the option looking 'touch , hold release'. user touched , holds touch 1 second, , item 'unlocks' draggable. sounded easiest enough when set out, using hammerjs press event, calling start drag , drop event process. not working out however, none of browser drag events can manually started. can call 'touchstart' trigger or dispatchevent, setup need, no drag events every occur. 'dragstart' gets fired touchstart occurs, , since needing wait, there never , dragstart kick off process.
i assume browser's drag , drop events work under specific circumstances. triggering dragstart manually wont real drag event (its missing datatransfer stuff), , importantly, nothing gets dragged, despite element being valid, draggable element. using alternate event 'dragover' works, since there never real dragstart, there no actual drag , drop occurring.
is browsers not support short of dropping html drag , drop javascript? or there missing?
Comments
Post a Comment