浏览代码

scroll bug fix (scroll up then hold for a while, finally release => unpredictable continuous scrolling)

/main
xingwei.zhu 6 年前
当前提交
6101fef3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Runtime/widgets/scroll_activity.cs

2
Runtime/widgets/scroll_activity.cs


this._lastDetails = details;
if (this._retainMomentum && velocity.sign() == this.carriedVelocity.Value.sign()) {
if (this._retainMomentum && velocity != 0.0f && velocity.sign() == this.carriedVelocity.Value.sign()) {
velocity += this.carriedVelocity.Value;
}

正在加载...
取消
保存