From 82a448ea0f7eabf59b1e28a2742cf045f0c791aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 27 Sep 2017 19:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=BB=9A=E5=8A=A8=E8=B7=9D?= =?UTF-8?q?=E7=A6=BB=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/lib/drag/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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