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

In ios 9.2,touch[start|move|end] don't trigger at some time #11272

Closed
zhiqinyigu opened this issue Apr 2, 2020 · 1 comment
Closed

In ios 9.2,touch[start|move|end] don't trigger at some time #11272

zhiqinyigu opened this issue Apr 2, 2020 · 1 comment

Comments

@zhiqinyigu
Copy link

zhiqinyigu commented Apr 2, 2020

Version

2.6.11

Reproduction link

https://jsfiddle.net/rdjjpc7a/2080/
The Link to minimal reproduction was forged by me, please take some time to read my description.

Steps to reproduce

The premise is that you have an iPhone with the system version IOS9.
The Steps to reproduce seem to be a nested amount of custom components.

The problem happened in 2.6.x. I had discovered this problem a year ago. Since I couldn't provide a minimal reproduction at the time (and it is now), I have been rolling back to 2.5.x until now.

But I now find the source of the problem in the source code.
https://github.com/vuejs/vue/blob/v2.6.11/src/platforms/web/runtime/modules/events.js#L69.

In IOS9, Condition "e.timeStamp >= attachedTimestamp" is never holds.

console.log(e.timeStamp, attachedTimestamp); // In IOS9, eg: 1585822331076 1585824221635

You can compare 2.5.x to solve this problem.

What is expected?

touch event trigger

What is actually happening?

events of the touch series are not triggered


Only happened in 2.6.x, only events of the touch series

@posva
Copy link
Member

posva commented Apr 2, 2020

Seems like a duplicate of #10964 and #11014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants