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

onTouchStart fire extremely slow in ios9.2'safari #5817

Closed
aaronwng opened this issue Jan 10, 2016 · 9 comments
Closed

onTouchStart fire extremely slow in ios9.2'safari #5817

aaronwng opened this issue Jan 10, 2016 · 9 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@aaronwng
Copy link

onTouchStart fire extremely slow in ios9.2'safari.slow then onClick. is this a bug?

@jimfb jimfb added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Jan 10, 2016
@jimfb
Copy link
Contributor

jimfb commented Jan 10, 2016

Can you provide two jsfiddles? One to demonstrate that it is fast without React, and another to demonstrate that it is slow in React?

@jimfb
Copy link
Contributor

jimfb commented Jan 29, 2016

No response for two weeks. We can re-examine this issue if OP can demo the problem.

@jimfb jimfb closed this as completed Jan 29, 2016
@aaronwng
Copy link
Author

sorry,so busy these days. i will provide jsfiddles as soon as possible, . i could simply describe the test method.just a really easy example, like these below,

var Test = React.CreateClass({ handleTouch:function(){ alert('touchStart'); }, render:function(){ return ( <div onTouchStart={this.handleTouch}></div> ) } });

this alert will show very slow after i touch [div] element on screen on ios9.2'safari , but,other browser like chrome perform normally.

@enriquetuya
Copy link

@jimfb could this issue be reopened base on the comment above?
#5817 (comment)

@enriquetuya
Copy link

@biblesyme are you experiencing the same with the latest 15.0.1 version?

@gaearon
Copy link
Collaborator

gaearon commented Apr 19, 2016

The example above doesn’t demonstrate that the lag doesn’t exist without React.
Are you sure it is React-related? Can you show this with a fiddle?

@aaronwng
Copy link
Author

aaronwng commented Apr 20, 2016

reactExample(https://jsfiddle.net/69z2wepo/39302/)
planJavascript(https://jsfiddle.net/n5furn55/6/)
jquery(https://jsfiddle.net/hdojb5zm/)

it seems as a safari problem, but, is anybody could explain why it's so slow to trigger a touchstart on safari, and how to solve this problem
@enriquetuya
@gaearon
@jimfb

@aaronwng
Copy link
Author

hi guys,it's seems not because safari 'trigger' touchstart slow,but 'alert' slow. i don't know why.

and, may i ask what's time React will support 'tap' event, it's seems not difficult to achieve this

@enriquetuya
Copy link

enriquetuya commented Apr 20, 2016

@biblesyme check this out: https://github.com/zilverline/react-tap-event-plugin#introduction

We did not solved our problem using that plugin though, we ended up using https://github.com/ftlabs/fastclick

This issue relates to: #436 and #1170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

4 participants