contra999 8 лет назад
Родитель
Сommit
ddb1f346a0
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/components/goods/goods.vue

+ 4 - 2
src/components/goods/goods.vue

@@ -141,7 +141,9 @@
         });
 
         this.foodsScroll.on('scroll', (pos) => {
-          this.scrollY = Math.abs(Math.round(pos.y));
+          if (pos.y <= 0) {
+            this.scrollY = Math.abs(Math.round(pos.y));
+          }
         });
       },
       _calculateHeight() {
@@ -269,4 +271,4 @@
             position: absolute
             right: 0
             bottom: 12px
-</style>
+</style>