Parcourir la source

Поправки багов скроллинга

Book Pauk il y a 2 ans
Parent
commit
e0c856ce8e
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      client/components/Search/Search.vue

+ 4 - 1
client/components/Search/Search.vue

@@ -771,9 +771,12 @@ class Search {
         this.lastScrollTop = curScrollTop;
     }
 
-    async ignoreScroll(ms = 50) {
+    async ignoreScroll(ms = 300) {
         this.ignoreScrolling = true;
         await utils.sleep(ms);
+        await this.$nextTick();
+        await this.$nextTick();
+        await this.$nextTick();
         this.ignoreScrolling = false;
     }