优化滚动组件在快速滚动时的速度
parent
ae1469333f
commit
f1bc6c8bf8
|
@ -261,7 +261,7 @@ export default class Scroll {
|
|||
var deltaY
|
||||
var now = Date.now()
|
||||
|
||||
if (!this.stamp || now - this.stamp > 1000) {
|
||||
if (!this.stamp || now - this.stamp > 800) {
|
||||
this.stamp = now
|
||||
this.times = 1
|
||||
}
|
||||
|
|
Reference in New Issue