Jquery.on () bubbling event bindings on iOS and Input boxes in the iOS absolute positioning element

Source: Internet
Author: User

I met two pits last week.

One is the jquery on method event bubbling, which has a problem in iOS.
$ ("Body"). On ("click", ". Contentup", Reply.replyonehandler);

In this sentence, there is no response in iOS. Baidu and Google, there is no too authoritative explanation. Just presumably, the bubble of iOS, if it has not been handler to handle the event, will only bubble to the inside of the body and not bubble to the body. So I had to add a children () to do it:
$ ("body"). Children (). On ("click", ". Contentup", Reply.replyonehandler);


The second is an absolutely positioned element, if there is an input box, input or textarea, get focus, automatically eject the input method, the absolute positioning of the element will be at the top of the screen to the input method of the top border of the middle position. This is also drunk, Android inside good. Had to use JS to engage, to scroll bound an event. No way.




Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Jquery.on () bubbling event bindings on iOS and Input boxes in the iOS absolute positioning element

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.