The mobile side uses isscroll.js input to not get the focus (that is, the point is not responding!) )

Source: Internet
Author: User

Lucky to find a solution on the Internet

Just add the following snippet of code to the code.

function Allowformsiniscroll () {[].slice.call (' Document.queryselectorall (' Input, select, Button ')). ForEach (  function(EL) {El.addeventlistener ((infunction(e) {e.stoppropagation ();})}  )} Document.addeventlistener (false);

The problem is that the iscroll needs to listen to the user's touch operation so that it can respond sensitively, so it masks the rest of the default events.

The above code principle is : After the page is loaded to find all the ' input, select, button ' element and then bind the ' touchstart ' or ' MouseDown ' event, when the event is executed to stop the propagation of the event, this line.

Original Author Address: http://www.cnblogs.com/duanhuajian/archive/2012/11/09/2763159.html

The mobile side uses isscroll.js input to not get the focus (that is, the point is not responding!) )

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.