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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -