Skip to content

[BUG] Wrong onPan events sequence  #2056

@lNikolayl

Description

@lNikolayl

Hi guys!

1. Describe the bug

Since the 10.1.0 version there is the issue with event sequence. Seems onPanStart event triggers after onPan. Not really sure that it's the expected behaviour.

2. IMPORTANT: Provide a CodeSandbox reproduction of the bug

Sandbox

Try to drag the white box and after that check the console logs.

3. Steps to reproduce

Steps to reproduce the behaviour:

  1. Drag the white box (tap and move events)
  2. Check the console logs

4. Expected behaviour

onPanStart event should be triggered first. (The "start" word semantically means before any others)

5. Video or screenshots

Screenshot 2023-03-29 at 10 48 06

6. Environment details

Browser: Chrome 108.0.0.0

framer-motion 10.9.1
(the issue since 10.1.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions