javascript - html5 drag and drop, use handle but move parent -
i have prepared little demo of drag , drop usability:
it works in way can use handle drag parent different container. goal use handle somehow transfer event container using handle in reality container being dragged not handle itself. how can done?
example of code demo:
var red = document.queryselector('.red'), red_handle = document.queryselector('.red .handle'); red_handle.ondragstart = function() { dragged = red; };
Comments
Post a Comment