jQuery - stopping a hover event while dragging
问题 I'm creating a drag and drop image environment, where if you hover over an image, a small menu pops up overtop of it. if you click and drag the image, you can reorder them. The problem I'm having is, I want the hover event to be disabled when you're dragging around. Currently if you drag an image around, it triggers all the hover menus on the other images you hover over. $('ul.imglist li').mousedown( function() { $(this).find('ul') .fadeOut(100); }); // Image actions menu $('ul.imglist li')