Here is the scenario.
I have a logo which can be draggable & resizable via jQuery UI (version is 1.9.2, but it doesn't really matter), bounded by a parent DIV. It works well in dragging & resizing.
However, when I try to overlay a DIV with a background image exactly above, the mouse clicks are blocked by the DIV above.
HTML
<div id="appleLogo"></div>
<div id="frameBorder">
<div id="draggableHelper" style="display:inline-block">
<img id="image" src="http://www.google.com.br/images/srpr/logo3w.png" />
</div>
</div>
JS
$('#draggableHelper').draggable({
containment: "#frameBorder",
scroll: false
});
$('#image').resizable();
CSS
#appleLogo {
position: absolute;
width: 400px;
height: 400px;
background-image: url(http://wbridgewaterschools.org/school/images/Apple%20logo.png);
background-size: cover;
opacity: 0.7;
filter: alpha(opacity=70);
z-index: 10;
}
#frameBorder {
position: absolute;
width: 400px;
height: 400px;
border: 1px solid #F00;
overflow: hidden;
z-index: 1;
}
For better demonstration, here is the jsFiddle. How can I bypass the above DIV ?
Here are some references I've read, but none applies to this case: