In JavaScript, screen.width reports 320 on my previous generation iPod touch. On an iPhone 4 it also reports 320. I thought the new iPhone 4 “retina” display was more? Why would it report 320?
In JavaScript, screen.width reports 320 on my previous generation iPod touch. On an iPhone
Share
The screen is treated as an “Extra high resolution” 320 pixel for most purposes. Even though literally it has more pixels.
(Not web-page, but informatively: Old pre-retina apps run, the same, but sneakily load the specially named double-resolution images, if they’re found. (image.png vs image@2x.png for example.) And drawing commands work as if it was 320 pixels.)