Webkit and jQuery draggable jumping

后端 未结 8 1096
误落风尘
误落风尘 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:23

    I used a lot of the solutions to get dragging working correctly. BUT, it still reacted wrong to a dropzone (like it wasn't rotated). The Solution really is to use a parent container that is positioned relative.

    This saved me soooo much time.

    .rect-container { position:relative; }

    Full Solution here (it's not from me): http://jsfiddle.net/Sp6qa/2/

    Also I researched a lot. And its just like this, jQuery doesn't have any plans to change that current behavior in the future. All submitted tickets about that topic were closed. So just start out with having parentcontainers that are positioned relative. It works like a charm and should be futureproof.

提交回复
热议问题