Skip to content

Conversation

@pomerantsev
Copy link
Contributor

Fixes #542.

Not sure why such a check was performed: e.pageX == undefined ? e.nativeEvent.pageX : e.pageX. If it's really possible for React's synthetic event not to get its properties from the native event, we should restore the check and add it for the touch event as well.

@pomerantsev pomerantsev changed the title Make touch-ripple properly react to touch events (fix) Make touch-ripple properly react to touch events Apr 20, 2015
@pomerantsev
Copy link
Contributor Author

Looks like this fix breaks EnhancedButton's onFocus behavior. I'll look into fixing it.

@pomerantsev
Copy link
Contributor Author

This commit most probably fixes the aforementioned issue, since we're now only suppressing mouse events, and others keep firing. @hai-cea, @mmrtnz: are you happy with this approach, or might I have broken anything else?

mmrtnz added a commit that referenced this pull request Apr 24, 2015
(fix) Make touch-ripple properly react to touch events
@mmrtnz mmrtnz merged commit 23790d6 into mui:master Apr 24, 2015
@mmrtnz
Copy link
Contributor

mmrtnz commented Apr 24, 2015

Nothing appears to be broken when I tested it on my computer. Thank you for the submission @pomerantsev!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two touch-ripples show up on buttons on touch devices

3 participants