reflex-dom icon indicating copy to clipboard operation
reflex-dom copied to clipboard

WIP: Add Reflex.Dom.Event to expose addEventListener options

Open 3noch opened this issue 5 years ago • 1 comments

Some events like touchstart and touchmove behave differently (by default) on different browsers. However, changing the default settings in addEventHandler is not at all straightforward. This PR attempts to solve two problems:

  1. Make it easy to customize options for addEventHandler.
  2. Offer a version of on for DOM events that always normalizes the behavior between browers so there is no discrepancy.

The changes are added in a new Reflex.Dom.Event module. Bikeshed away. Many things in Immediate.hs should probably be moved to this module as well.

3noch avatar Jul 16 '20 22:07 3noch

These changes could all go in ghcjs-dom and jsaddle-dom TBH except for the normalization bit.

3noch avatar Jul 16 '20 22:07 3noch