这是可拖动对jquery
offset()函数的依赖以及
offset()对本机js函数的使用的结果
getBoundingClientRect()。最终,这是jquery核心无法补偿与相关的不一致的问题
getBoundingClientRect()。Firefox的版本会
getBoundingClientRect()忽略css3转换(旋转),而chrome/ safari(webkit)则不会。
这是问题的例证。
hacky解决方法:
替换jquery.ui.draggable.js中的以下内容
//The element's absolute position on the page minus marginsthis.offset = this.positionAbs = this.element.offset();
与
//The element's absolute position on the page minus marginsthis.offset = this.positionAbs = { top: this.element[0].offsetTop, left: this.element[0].offsetLeft };最后是您的jsbin的monkeypatched版本。



