Do mobile webkit browsers have a rounding issue in JS?
问题 I'm trying to debug an issue with some javascript slider code on mobile browsers. It appears to be a rounding error which only occurs on mobile devices. The following code will work fine on the desktop (e.g. Chrome) but the increase button fails to work on higher values on the slider when viewed in Webkit on a smartphone e.g. iPhone iOS 5/6, Samsung S2 ICS. Try this http://jsfiddle.net/codecowboy/mLpfu/. Click the 'debug on mobile' button - its directly adjacent to the Run button top left