jQuery offset() incorrect in Chrome on Android -


i using jquery 1.9.1's offset() function try , position of when clicked. have found though values returned incorrect when using chrome on android or using chrome dev tools simulate nexus device.

as long page isn't zoomed works expected if page zoomed values returned offset() out amount window scrolled horizontally , vertically.

i can round adding on $(window).scrolltop() , $(window).scrollleft() values values returned offset() means out on other devices.

the issue seems exist on android, have tested in chrome on ipad , offset() works expected regardless of whether zoom or not.

is there way overcome other trying check user agent android chrome imagine unreliable.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -