When I try to move a SVG object it work's not when using removeChild(). It blocks also the touchmove event when moving.
Pseudocode:
id.addEventListener("touchmove", function(e) {
if (selected == true) {
e.preventDefault();
moveY = y;
var n = document.getElementById("test"); // remove nodes
while (n.lastChild) {
n.removeChild(n.lastChild);
}
test.appendChild(createElementNS...); // add it again
}
}, false);