大概1560~1569行
pos : function() {
var self = this, node = self[0], x = 0, y = 0;
if (node) {
if (node.getBoundingClientRect) {
var box = node.getBoundingClientRect(),
pos = _getScrollPos(self.doc);
// x = box.left + pos.x;
x = pos.x;//修复加粗动作时滚动条左右跳动
// y = box.top + pos.y;
y = pos.y;//修复加粗动作时滚动条上下跳动
} else {
while (node) {
x += node.offsetLeft;
y += node.offsetTop;
node = node.offsetParent;
}
}
}