复用demo节点会影响滚动条?
Vue version
latest
Link to minimal reproduction
https://codepen.io/samlldevel/pen/MWZKWqL
Steps to reproduce
一个list列表,当滚动条滚动到列表末尾时,定时删除第一行,并且新增一行在最后。页面的滚动条会自动滚动
What is expected?
页面的滚动条不会受列表的影响
What is actually happening?
这个怀疑是浏览器机制,但是具体不知道是什么,希望帮忙看看原因,想要得到一个解决方案。dom节点加上时间戳就不会出现这个问题,但那不是我想要的。
System Info
System:
OS: Windows 10 10.0.22621
CPU: (12) x64 AMD Ryzen 5 3600X 6-Core Processor
Memory: 4.38 GB / 15.95 GB
Binaries:
Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Local\pnpm\yarn.CMD
npm: 6.14.18 - C:\Program Files\nodejs\npm.CMD
pnpm: 7.5.2 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Edge: Spartan (44.22621.2134.0), Chromium (116.0.1938.54)
Internet Explorer: 11.0.22621.1
Any additional comments?
使用datav 轮播表的时候发现的问题。 http://datav.jiaminghi.com/guide/scrollBoard.html
.body2 {
overflow-anchor: none;
}
Refrence
https://stackoverflow.com/questions/42958463/stop-automatic-scrolling-on-page-content-change https://stackoverflow.com/a/43001201/16311164