Increase fling-sensitivity of scrollable tabs (#3897)
This commit is contained in:
parent
20897c3f66
commit
7de612add0
@ -36,8 +36,9 @@ const Curve _kTabIndicatorLeadingCurve = Curves.easeOut;
|
|||||||
const Curve _kTabIndicatorTrailingCurve = Curves.easeIn;
|
const Curve _kTabIndicatorTrailingCurve = Curves.easeIn;
|
||||||
|
|
||||||
// The scrollOffset (velocity) provided to fling() is pixels/ms, and the
|
// The scrollOffset (velocity) provided to fling() is pixels/ms, and the
|
||||||
// tolerance velocity is pixels/sec.
|
// tolerance velocity is pixels/sec. The additional factor of 5 is to further
|
||||||
final double _kMinFlingVelocity = kPixelScrollTolerance.velocity / 2000.0;
|
// increase sensitivity to swipe gestures and was determined "experimentally".
|
||||||
|
final double _kMinFlingVelocity = kPixelScrollTolerance.velocity / 5000.0;
|
||||||
|
|
||||||
class _TabBarParentData extends ContainerBoxParentDataMixin<RenderBox> { }
|
class _TabBarParentData extends ContainerBoxParentDataMixin<RenderBox> { }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user