Re: [elm-discuss] Touch module in Elm 0.17

2016-07-27 Thread art yerkes
A proper expression of touch includes multiple touches that can come and go independently, along with extra parameters for each (pressure is one but velocity is another too). Neither was relevant to the things I was writing but it'd be awesome to see a touch API that exposes touch fully in a way t

Re: [elm-discuss] Touch module in Elm 0.17

2016-07-27 Thread OvermindDL1
As long as you have multiple pointer objects. Linux supports multiple simultaneous mice (no clue if browsers do) so there is precedent there. And touch's are basically multiple mice (although some interfaces expose a 'strength' or 'pressure' or so too to say how hard the person is touching).

Re: [elm-discuss] Touch module in Elm 0.17

2016-07-27 Thread Rex van der Spuy
On Tuesday, July 26, 2016 at 1:35:07 PM UTC-4, Janis Voigtländer wrote: > > I guess because it’s much less clear for it than for the other three > mentioned modules what the “final” API will look like. > Would it make sense to combine both mouse and touch into a single `pointer` object? --

Re: [elm-discuss] Touch module in Elm 0.17

2016-07-26 Thread Janis Voigtländer
I don’t think there was a technical reason or specific complication. The Touch module had simply never been really finished API-wise, and during the transition from Elm 0.16 to 0.17 there was no priority to polish touch support in particular. So while stuff like Keyboard and Mouse and Graphics was

Re: [elm-discuss] Touch module in Elm 0.17

2016-07-26 Thread John Bugner
May I ask why touch support disappeared? Was it hard to convert to using subscriptions or something? (Sorry for bumping an 2-month-old thread, if I'm not supposed to do that.) On Saturday, May 14, 2016 at 1:50:51 PM UTC-5, Janis Voigtländer wrote: > > Touch support is gone for now. > > Am 14.05.

Re: [elm-discuss] Touch module in Elm 0.17

2016-05-16 Thread Tobias Hermann
Thank you very much. It works. In case anybody is interested, here is the full minimal example using the snippet: https://gist.github.com/Dobiasd/5aba6bbf872301977bc35790a04bfde0 On Monday, May 16, 2016 at 8:09:26 PM UTC+2, art yerkes wrote: > > I do it like this: > > D.oneOf [ > D.at ["touches",

Re: [elm-discuss] Touch module in Elm 0.17

2016-05-16 Thread art yerkes
I do it like this: D.oneOf [ D.at ["touches", "0"] (D.object2 TouchPosition ("pageX" := D.float) ("pageY" := D.float)) , D.object2 TouchPosition ("pageX" := D.float) ("pageY" := D.float) ] Which can be bound to both touch and mouse events and yields whatever the event has. On Sunday, May 15, 2

Re: [elm-discuss] Touch module in Elm 0.17

2016-05-16 Thread Steve Schafer
That's like saying Elm supports everything, as long as you define "dropping out to JavaScript" as "part of Elm." -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to