pmndrs / use-gesture

👇Bread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.

Home Page:https://use-gesture.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(Firefox) Click event fired on drag end

satelllte opened this issue · comments

About

Not sure if this a bug or not, but it would be helpful to see what use-gesture library maintainers can tell about it...

In Firefox, click event gets fired once mouse button is released and drag gesture finished.

How to reproduce

Additional information

The issue was originally reported by @eprincen2 in my react-knob-headless library, which consumes @use-gesture: satelllte/react-knob-headless#57. But it turns out this is reproducible in this library itself either.

Environment

  • Use Gesture version: v10.3.1
  • Device: MacBook Pro
  • OS: MacOS (or Linux)
  • Browser: Firefox