CN-572 fix: 修复图表和地图内存泄漏问题

This commit is contained in:
chenjinsong
2022-05-20 16:33:00 +08:00
parent cf401c4c2c
commit e5d0e54320
18 changed files with 143 additions and 438 deletions

View File

@@ -803,7 +803,6 @@ export function scrollToTop (dom, toTop, duration, direction) {
if (oldTimestamp !== null) {
if (direction === 'up') {
scrollY -= totalScrollDistance * (newTimestamp - oldTimestamp) / duration
console.info(scrollY)
if (scrollY < 0) {
dom.scrollTop = 0
return