Popmotion / popmotion

Simple animation libraries for delightful user interfaces
https://popmotion.io
20k stars 663 forks source link

Inertia mouse and touch. #900

Open David-Carty opened 3 years ago

David-Carty commented 3 years ago

Add the package name to bug title

Popmotion: Inertia mouse and touch

Describe the bug

A clear and concise description of what the bug is.

How to reproduce

Steps to reproduce the behaviour: 1.I have a touch screen Windows laptop

  1. I open this link https://popmotion.io/api/inertia/#inertia-example
  2. I touch the example, it works fine.
  3. If I now try and use the mouse on the example it no longer works. Only touch works.
  4. So, this example is not suitable for devices that are both touch and have a mouse.

Expected behaviour

I would expect the mouse to still work after touching the screen.

Link to CodePen example (or similar)

https://popmotion.io/api/inertia/#inertia-example

Device information

In which environment are you reproducing the bug? Windows, Chrome