After the emergence of pop, the parent page is also sliding or rolling problems

1. Given a hidden pattern, such as:

{.noscroll 
height: 100%;
overflow: hidden;
}
2. Modify html, body style pop clicked
$ ( "HTML, body") toggleClass ( 'noscroll');. 

3. If the sliding warning page appears. As follows:
[Intervention] Unable to preventDefault Inside passive listener Event Due to passive target being Treated AS See <the URL of>.

Add style can be resolved:
* {
touch-action: none;
}

With the mind:
$(selector).toggleClass(class,switch)

toggleClass () to set or remove one or more elements selected class switching.

This method checks each element of the specified class. If you add the class does not exist, if already set deleted. This is called transitions.

However, by using the "switch" parameter, you can specify only delete or add only class

Guess you like

Origin www.cnblogs.com/GGDong/p/10994469.html