Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To be cross-browser compatible and to avoid wird behavior, I would recommend to use all <a href="http://api.jqueryui.com/draggable/" rel="nofollow">JQueryUI draggable callbacks</a>.</p> <p>I read some days ago that the last version of Chrome has some really tricky problems with natives HTML5 draggable events.</p> <p>For example, I have just checked your web page source code and you are using <code>$('.drag-handle').on('drag', function(){...});</code> => You should use the <a href="http://api.jqueryui.com/draggable/#event-drag" rel="nofollow">drag</a> callback.</p> <p>I would also recommend to not use <code>window</code> as the scrollable container in your case. You should create a <code>div</code> to wrap all the tables contents and use it as a scroll container. I have already done this implementation in the past and it is working.</p> <p>Don't forget to set the wrapper ID in the <code>containment</code> option durring the draggable widget creation.</p> <p>If it always not working, you could also try to overwrite the helper position in the <code>drag</code> callback :</p> <pre><code>//Save the mouse position in global variables $(document).mousemove(function(e){ window.mouseXPos = e.pageX; window.mouseYPos = e.pageY; }); $('[id^="drag-"]').each(function() { $(this).draggable({ opacity: 0.7, cursorAt: { top: 15, left: 50 }, scroll: true, stop: function(){}, drag : function(e,ui){ //Force the helper position ui.position.left = window.mouseXPos - $(this).draggable('option','cursorAt').left; ui.position.top = window.mouseYPos- $(this).draggable('option','cursorAt').top; }); }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload