Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notifyOnTouchEnd property to trigger notify on touchEnd if the user didn't scroll #15

Merged
merged 3 commits into from May 23, 2016
Merged

Add notifyOnTouchEnd property to trigger notify on touchEnd if the user didn't scroll #15

merged 3 commits into from May 23, 2016

Conversation

andysprout
Copy link
Collaborator

@andysprout andysprout commented May 20, 2016

Real pain with mobile safari not bubbling click events.

In the example, if notifyOnTouchEnd is set, when scrolling or zooming on a touch device, the modal is not dismissed.

Also use NODE_HOST and NODE_PORT env vars to allow testing on other devices on the same LAN.

Andrew Stewart added 3 commits May 20, 2016 16:22
Fixed bug on IOS (chrome and mobile safari) that saved a reference to the first touch, by the time the touchend event was triggered, the touch object had been mutated by the browser so the diff in coordinates was always 0.
…nd` and don't use `click` for non-touch devices, only `mousedown`
@andysprout andysprout changed the title Add 'useEndEvent' property to trigger onClick on 'click' if supported or 'touchEnd' Add notifyOnTouchEnd property to trigger notify on touchEnd if the user didn't scroll May 23, 2016
@nkbt nkbt merged commit 7cccefd into nkbt:master May 23, 2016
@nkbt nkbt deleted the use-end-events branch May 23, 2016 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants