Skip to content

VelocityTracker with argument #2

@drikanius

Description

@drikanius

To fix a problem in VelocityTracker I created a fork and based on that pull:
https://github.com/flutter/flutter/pull/64267/files/3f1eeb87ee8388ed15c6861073a930db926f53e5

I did the same and it seems to solve the problem.

Currently, I'm using the flutter master and I'm not sure if this modification is already in stable or not.

This is my change:
https://github.com/Tip-Off/OptimizedGestureDetector/commit/d576efd5f06c0e98f0c13347e63c04fc60c650c6

I believe it is not very useful since I use auto-formatting and it looks like it messed up the whole code.

The only change is on line 219
_velocityTrackers[event.pointer] = VelocityTracker(PointerDeviceKind.touch);

I just added "PointerDeviceKind.touch"

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions