浏览代码

[Fix] Wrong Scroll Tolerance

/main
iizzaya 5 年前
当前提交
5e64936f
共有 2 个文件被更改,包括 3 次插入4 次删除
  1. 2
      Runtime/cupertino/localization.cs
  2. 5
      Runtime/widgets/scroll_physics.cs

2
Runtime/cupertino/localization.cs


public override string datePickerMediumDate(DateTime date) {
var day = _shortWeekdays[((int) date.DayOfWeek + 6) % 7];
var month = _shortMonths[date.Month - 1];
return $"{day}, {month} {date.Day.ToString().PadRight(2)} ";
return $"{day} {month} {date.Day.ToString().PadRight(2)} ";
}
public override DatePickerDateOrder datePickerDateOrder {

5
Runtime/widgets/scroll_physics.cs


}
}
// todo: Handle the case of the device pixel ratio changing. use 1 as devicePixelRatio for now.
velocity: 1.0f / (0.050f * 1),
distance: 1.0f / 1
velocity: 1.0f / (0.050f * Window.instance.devicePixelRatio),
distance: 1.0f / Window.instance.devicePixelRatio
);
public virtual Tolerance tolerance {

正在加载...
取消
保存