I need to make a div draggable via jquery through a mask div. First the div structure:
<div id="parent">//Relatively positioned
<div id="mask"></div>
<div id="content"></div>
</div>
I need to make the #content
div draggable, but since it is layered under the mask div, mouse-events don't reach it. So my perfect solution for desktop:
$("#mask").on("mousedown",function(e){
$("#content").trigger(e);
})
As you can see, I simply pass on the necessary event data, and it all works good. But I don't know what to do for a touch device. Which event do I send through?
I am using jQueryMobile and TouchPunch .....and without the mask div, it works properly on touch screens. Any ideas?