大概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;
  }
}

}

相关文章:

  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-03-03
  • 2022-12-23
  • 2021-12-30
相关资源
相似解决方案