Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

TouchEvent support #99

Merged
merged 1 commit into from
Jun 1, 2017
Merged

Conversation

jacereda
Copy link
Contributor

@jacereda jacereda commented Jun 1, 2017

No description provided.

item i = toMaybe <<< _item i

eventToTouchEvent :: Event -> F TouchEvent
eventToTouchEvent = readTouchEvent <<< toForeign
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't provide these upcasts for any of the other event types as part of this library, so don't really need this one either. purescript-dom-classy covers this sort of thing instead. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied eventToTouchEvent from MouseEvent, also present in ClipboardEvent, CompositionEvent, FocusEvent, KeyboardEvent and WheelEvent. Are those kept for backwards compatibility?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhh ok, I guess I'm wrong! I didn't think we provided those. 😄

@garyb
Copy link
Member

garyb commented Jun 1, 2017

Thanks!

@garyb garyb merged commit 4cfb68d into purescript-deprecated:master Jun 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants