Mobile-side (IOS) IFRAME is not listening to onscroll events

Source: Internet
Author: User

Problem Description:

I have a waterfall flow in a page A, click on the waterfall flow in the picture needs to go to another page B, click Back to return to page a click on the location, in order to achieve this effect so in page a embedded iframe,iframe point to page B, page B also has a waterfall stream.

Problems encountered:

Because the waterfall stream is listening to the Onscroll event, the problem is that the Onscroll event that is being monitored in the iframe, which is page B, will not be triggered, and will execute the Onscroll event in page A, causing the waterfall stream to be loaded underneath the parent. That is, unable to listen to the Onscroll event in the IFRAME, finally and the classmate to determine whether window.top equals window, in the case of unequal, for the IFRAME binding Touchmove event.

Mobile-side (IOS) IFRAME is not listening to onscroll events

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.