From 7f5b6b6ba16354047f70464e4448ece456052815 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Wed, 17 Jun 2020 19:55:10 +0800 Subject: [PATCH] Fix scrollTo in Edge --- _server/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_server/editor.js b/_server/editor.js index 7e684e8e..d94e97f6 100644 --- a/_server/editor.js +++ b/_server/editor.js @@ -526,7 +526,7 @@ editor.prototype.setLastUsedType = function (type) { = type == 'frequent' ? (_buildHtml('recent', '最近使用') + " | " + _buildHtml(null, '最常使用')) : (_buildHtml(null, '最近使用') + " | " + _buildHtml('frequent', '最常使用')); this.updateLastUsedMap(); - editor.dom.lastUsedDiv.scroll(0,0); + editor.dom.lastUsedDiv.scrollTop = 0; } editor.prototype.updateLastUsedMap = function () {