react-router-cache-route icon indicating copy to clipboard operation
react-router-cache-route copied to clipboard

cordova的ios容器中isScrollableNode判断有兼容问题

Open hoyt-tian opened this issue 5 years ago • 1 comments

在cordova9.0的ios容器中, node.scrollWidth与node.clientWidth以及node.scrollHeight与node.clientHeight始终相等, 导致saveScrollPosition时找不到需要save的元素. 是否可以直接改成下面的形式? `function isScrollableNode(node = {}) { if (!isExist(node)) { return false }

return node.scrollTop > 0 || node.scrollLeft > 0 }`

hoyt-tian avatar Jul 10 '20 10:07 hoyt-tian

这是一个可行的做法,但在 scrollTop 或 scrollLeft 等于 0 时也会出现判断偏差,这样的情况下有没有办法兼容呢?

CJY0208 avatar Jul 11 '20 04:07 CJY0208