IScroll5 + incompatible solution for ios and android click events, iscroll5android
Bug description:
The click event cannot be triggered in ios and android4.4 +.
Bug solving:
Call the iscroll plug-in and add the configuration parameter: click: true/false.
The click value is determined based on the mobile terminal device. If you simply judge the terminal type, android4.4 + still cannot be clicked, which is a pitfall of Android, after all, there is no unified IOS system.
Therefore, add a function to judge:
// #########function iScrollClick(){if (/iPhone|iPad|iPod|Macintosh/i.test(navigator.userAgent)) return false;if (/Chrome/i.test(navigator.userAgent)) return (/Android/i.test(navigator.userAgent));if (/Silk/i.test(navigator.userAgent)) return false;if (/Android/i.test(navigator.userAgent)) { var s=navigator.userAgent.substr(navigator.userAgent.indexOf('Android')+8,3); return parseFloat(s[0]+s[3]) < 44 ? false : true }}
Configuration instance:
MyScroll = new IScroll ("# ID", {click: iScrollClick (), // call the judgment function scrollbars: true, // There is a scroll bar mouseWheel: true, // allows the pulley to scroll fadeScrollbars: true // the scroll bar is displayed when the pulley is rolled. The default shadow and fade out effect });
Ios and Android
Android is open, which has advantages and disadvantages. The advantage of openness does not need to be mentioned. The disadvantage lies in compatibility. It is difficult for different hardware to be fully compatible, but ios does not have this problem.
Why does the ios firmware prompt incompatibility?
4. After completing the above steps, is it a key issue! Yes! Even if the confirmation is correct, the system prompts "incompatible firmware ". Solution: the firmware downloaded from ibetadownload on the official website is in the. dmg format. It is the real. ipsw file that needs to be extracted. When downloading the firmware on the Internet, we also want to thank some of the firmware files that are provided selflessly and scold them for being silly! Some of them directly changed the file name type downloaded from the official website to. ipsw. The correct solution was to change the suffix of the. ipsw file downloaded from the computer to. dmg. (Of course, If you directly use this ipsw file, you can click it to ignore all what I said ). Then use the ultraiSO software to open the dmg file and extract the real one. the ipsw file may be extracted slowly. Extract it and connect it to itunes. shift + check the update selection point and find the extracted file to start refreshing, do not wait until the mobile phone restarts automatically to display the new system. After the configuration is complete, it takes about half an hour to upgrade beta1 to beta2. in this way, you can have fun with the new system, because it is 6.1 better. 3. It is worth upgrading! At least it's new. The future trend will be better! I believe it is my opinion. Believe it or not depends on my personal friends. I just want to use my machine experience to provide some reference for some friends who need it. If you have any questions, I will reply to you.