javascript - jquery drag/drop - activate dropzone with mouse not with center of dragged element -


i want drop elements element. problem dropzone gets activated when middle of dragged element entering dropzone. wished behaviour dropzone activated mouse enters/hovers dropzone.

i'm pretty shure no brainer, not me...

i tried different options example:

cursorat:  snap: handle: 

but none of them helped anything... i've created jsfiddle explain problem.

http://jsfiddle.net/fxem7/3/

many , kind regards costal

look @ tolerance option droppable , set value pointer, below:

$("#drop1, #drop2, #drop3").droppable({     tolerance: "pointer",     hoverclass: "ui-state-hover",     handle: ".msghandler",     drop: function(ev, ui) {         console.log("msg_id = "+ui.helper[0].id);         console.log("drop_id = "+this.id);     } }); 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -