"touchmove" event handler lost on appendTo

"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.
  1. $(function(){
  2. $("<p>Drag this: it works</p>").appendTo("body").on("touchmove", function(e) { alert("Works!") });
  3. $("<p>Drag this: it does not</p>").on("touchmove", function(e) { alert("Why not?") }).appendTo("body");
  4. });