Webkit and jQuery draggable jumping

后端 未结 8 1094
误落风尘
误落风尘 2020-11-28 23:40

As an experiment, I created a few div\'s and rotated them using CSS3.

    .items { 
        position: absolute;
        cursor: pointer;
        background:          


        
8条回答
  •  鱼传尺愫
    2020-11-29 00:21

    the answer of David Wick was very helpful... thanks... here i coded the same workaround for the resizeable, because it has the same problem:

    search for the following in jquery.ui.resizable.js

    var o = this.options, iniPos = this.element.position(), el = this.element;
    

    and replace with:

    var o = this.options, iniPos = {top:this.element[0].offsetTop,left:this.element[0].offsetLeft}, el = this.element;
    

提交回复
热议问题