javascript - html5 drag and drop, use handle but move parent -


i have prepared little demo of drag , drop usability:

demo here

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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -