When you open a webpage on WeChat, the drop-down list will show that the webpage is provided by XXX, but some webpages do not, and different mobile phones on different platforms are different. Why? -

Source: Internet
Author: User
In iOS Mobile Phones, most of the pull-down pages are provided by XXX, and some do not respond to the drop-down. In Nexus5, the system never responds to the drop-down list. In HTC, the response is pulled down. PS: There are iOS Mobile phones that will be pulled up, But Android basically does not. Why? How can we avoid responding to these events? PSS: open a webpage in the preceding background. In iOS Mobile Phones, most of the pull-down pages are provided by XXX, and some do not respond to the drop-down.
In Nexus5, the system never responds to the drop-down list.
In HTC, the response is pulled down.
PS: There are iOS Mobile phones that will be pulled up, But Android basically does not. Why? How can we avoid responding to these events?
PSS: open a webpage in the preceding background. Reply content: you can write a js method to eliminate this phenomenon, and it will be no longer available when it cannot be pulled.
The Code is as follows:
$ (Document). ready (function (){

Function stopScrolling (touchEvent ){
TouchEvent. preventDefault ();
}
Document. addEventListener ('touchstart', stopScrolling, false );
Document. addEventListener ('touchmove ', stopScrolling, false );
});
Obviously, jquery is used, and you do not need to use it. The focus is to use preventDefault to stop the feedback after the event.
Syntax

Event. preventDefault ()
I saw an article in SegmentFault and I don't know if it can solve your problem.
To prevent the "expose" component from being pulled down. I cannot understand why some webpages are displayed, but I cannot find the domain name on my computer. Why?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.