"touchmove" event handler lost on appendTo
Hello,
I have found that the "touchmove" event handler ceases to work when you use appendTo, insertBefore or insertAfter on the element after the event handler has been bound to it. Please see the example below.
- $(function(){
- $("<p>Drag this: it works</p>").appendTo("body").on("touchmove", function(e) { alert("Works!") });
- $("<p>Drag this: it does not</p>").on("touchmove", function(e) { alert("Why not?") }).appendTo("body");
- });