Skip to content

Commit

Permalink
refactor: 废弃elementsFromPoint方法
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu committed Dec 22, 2024
1 parent 7b7f7ad commit 2f732ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export function getBlockTopAndHeightWithMargin(element) {
/**
* document.elementsFromPoint polyfill
* ref: https://github.com/JSmith01/elementsfrompoint-polyfill/blob/master/index.js
* @deprecated 这个方法有问题,输入目标坐标如果介于两个子元素中间,则会返回最外层父元素
* @param {number} x
* @param {number} y
*/
Expand Down

0 comments on commit 2f732ea

Please sign in to comment.