-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Weird Promise in UIWebView in iOS >= 9.3.3 #6054
Comments
Hello, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue - thank you! |
I'll re-open this even though it's not meeting the issue standards since I assume this is meant as a discussion start to see how to solve this? the goal of the issue is not quite clear to me. |
First of all,thank you for your reopening. I think it would be a good thing if this could solve the problem or better solution to avoid the problem except for not using these directives could be discussed.If this problem could be solved in the next release is better. I solved this problem by using 'setInterval' when I was updating an audio time. And '.lazy' can avoid this problem when using 'v-model'.But if we need to know the data updates in real time,we need to use 'setTimeout' and 'input' event,this is too cumbersome and not elegant. |
The description is not very clear - are you saying after the scroll+type together the queue stops working altogether (i.e. nothing updates anymore)? We use Promise whenever it is available, because the microtask queue gets flushed earlier than the timer queue. Ideally, we want to fallback to |
My answer is yes, so I prepared a demo and did a few tests again, but this time everything seems to be all right. I realized it was my misunderstanding.Unlike before this time I removed the other library and used One of the conditions for It was my carelessness, I didn't keep looking for the reason. |
Cool, good to know! Maybe you can file an issue for Babel regarding the polyfill behavior. |
Version
v2.2.4
Detail
Like the source code comments described, Promise became weird in UIWebView in iOS >= 9.3.3.When you have a input or textarea element and use v-model or input event to create a two-way binding, then scroll the page at the same time as typing,the page events do not respond except native events.Under these circumstances,
can't solve the problem,but
doing well.I think setTimeout recovers more easily than Promise does.So setTimeout can avoid hanging up by JavaScriptCore after scrolling,the event queue will not be blocked.
Other relevant
The timeupdate event of audio and video also have a similar situation.
WKWebView performs well in this situation.
This is my opinion.(In my case, I used vue-cli, standard mode.)Is this correct?Or is there any other way to solve the problem?
BTW,can anyone tell me why there are two lines of the same relace in 'vue.esm.js'(line 150-151)?
The text was updated successfully, but these errors were encountered: