This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

优化滚动组件在快速滚动时的速度

old
宇天 2020-07-07 10:57:00 +08:00
parent ae1469333f
commit f1bc6c8bf8
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ export default class Scroll {
var deltaY var deltaY
var now = Date.now() var now = Date.now()
if (!this.stamp || now - this.stamp > 1000) { if (!this.stamp || now - this.stamp > 800) {
this.stamp = now this.stamp = now
this.times = 1 this.times = 1
} }