diff --git a/js/lib/drag/main.js b/js/lib/drag/main.js index 624b3d5..ff2b100 100644 --- a/js/lib/drag/main.js +++ b/js/lib/drag/main.js @@ -97,8 +97,8 @@ define(['yua'], function(){ dy = cst[5] //滚动条的偏移 - bst = document.body.scrollTop - bsl = document.body.scrollLeft + bst = document.documentElement.scrollTop + bsl = document.documentElement.scrollLeft // 计算元素的offset值, 需要修正 ox = offset.left - dx - bsl