0

I have a problem using jQueryUI Draggable and detecting both drag and clicks on an element when iFramefix flag is set to true.

http://jsfiddle.net/xBB5x/11706/

Code:

$(function(){
    $("#dummy").draggable({iframeFix: true});
  $("#dummy").click(function() {
  alert("hey ho");
  });
});

From what I found out during some testing and research that the iframeFix creates some div overlay above the iframe so dragging will be smooth but that prevents clicks from being triggered.

Any idea's?

2
  • Well, isn't that what you are trying to achieve by using iframeFix? Preventing clicks from being fired?
    – Vcasso
    Jun 27, 2016 at 16:25
  • 1
    Nope, the element isn't inside the iframe. any way - by using zIndex'es I was able to make the elements above the iframe div and catch the clicks.
    – Guy S
    Jun 27, 2016 at 18:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.