I am having trouble making .draggable work in IE 9 and 10. The main javascript packages used are: jquery-ui-1.9.1.min.js and jquery-1.8.2.min.js
The code basically looks like this:
creation.texts.resize = function(){
jQuery('.modification-text.active .creation-resize-handler').draggable({
start: function(event, ui){
... some code ...
},
drag: function(event, ui){
... lots of code ...
},
stop: function(event, ui){
... some code ...
creation.texts.resize();
}
});
}
It works perfectly fine with chrome firefox etc. Did anyone run into a similar problem?
Update: I just tried a small sample code in jsfiddle.net, works fine. The code is pretty huge, must be some other problem.
Update 2: It appears that the draggable element is not clickable: I did some separate tests on the same page and I can use .draggable just fine. I added a onclick alert to the faulty element, it's not triggering in IE. Here is a sample html code of the elements in that area:
<div id="modification-limit" style="left: 25px; top: 34.5px; width: 290px; height: 290px;">
<div class="modification-text text-active active first-text ui-draggable" id="text_1" style="left: 97px; top: 24px; z-index: 0; border: 1px dashed rgb(204, 204, 204);">
<img src="/images/creation/rotate.png" class="creation-rotate" style="display: block;">
<div class="creation-rotate-handler ui-draggable" style="display: block;"></div>
<img src="/images/creation/resize.png" style="z-index: 100; display: block;" class="creation-resize">
<div class="creation-resize-handler ui-draggable" style="z-index: 50000; display: block;" onclick="alert('clicked');">
</div><img src="/images/creation/close.png" class="creation-close-text" style="display: block;">
<div> ... </div>
</div>
</div>
I removed a lot of html for simplicity (a lot of 'data-..'). Hopefully, the problem is not part of the code I removed.