Ok, I found this post Samsung Galaxy S4 resolution:
Real resolution: 1080X1920
CSS resolution: 360X640
did you get 640 instead by using window.innerWidth ? I suppose so, because nowadays, the smartphone has amazing resolutions for display but not exactly pixel to pixel for web viewport resolution. As you can imagine, if the ordinary webpage was displayed in 1920 on a phone, it would too small to see. For ipad retina, the real pixel is 2048, but render every thing as 1024, PICTURES, TEXT will be more sharp, but you should treat them as 1024 when you develop.
So You should stick to the innerwidth you get, because that is the CSS resolution, the only resolution you should care about as developer.
On Saturday, September 21, 2013 9:12:59 PM UTC-4, ya6655 wrote:
Anyone ? :(