Mobile iOS Touchmove slide to border (browser address blocking above) Touchend failure resolution

Source: Internet
Author: User

On the mobile side H5 page, especially those full-screen box display switch page, when the user accidentally slipped his finger to the browser address block above (China Mobile this fast region); At this point, the finger has left the screen, but iOS can not hear the Touchend event ; The callback function event of toucend monitoring is directly invalid;

The problem is only on the real machine, the simulator, Android temporarily did not find; Touchcancel canceling the event is no use;

Baidu for a long time. Asked a lot of people did not find a way, then suddenly think of a solution; move when the address block; Call the end callback function directly,

                  if (Touchs.clienty<2&&isios) {  // If you encounter an address block   iOS phone bug                         end (e                    );

Where Touchs.clienty<2   is not recommended  if (!touchs.clienty&&isios) {}     

Mobile iOS Touchmove slide to border (browser address blocking above) Touchend failure resolution

Related Article

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.