elm / browser

Create Elm programs that run in browsers!
https://package.elm-lang.org/packages/elm/browser/latest/
BSD 3-Clause "New" or "Revised" License
313 stars 64 forks source link

add pointer events #124

Open Garados007 opened 3 years ago

Garados007 commented 3 years ago

The pointer events are useful if you want to support mouse like behavior on a mobile screen because it combines the Apis for mouse, touch and normal pens.

This pull request adds three methods that enables the user to subscribe to the pointerdown, pointerup and pointermove events on the document node like onMouseUp, onMouseDown and onMouseMove would do with mouse events.

With this addition the community can create custom drag&drops, menus or drawing boards on mobile screens that behave like on a normal desktop computer.

loicknuchel commented 3 years ago

I just need that, would be awesome!