Problem description

When a page has a floating layer (such as a popup type component), scroll penetration occurs when the content inside the floating layer is slid and the content below the floating layer is also rolled.

Official Solution

Disadvantages:

If you use catch:touchStart =”stopSlide” on the van-Popup layer, then nothing in pop can respond to bind: tap, which means you can’t implement a custom keyboard for pop pages. Reference Documentation (van-popup) virtu-contrib.gize. IO/virtu-appeet /…

Personal Solutions

catch:touchmove = 'stop_scroll_chaining'Do not disable TouchStart, just disable TouchMove, ensure that elements in the floating window can be clicked, and ensure that they will not slide through;Copy the code