Open johnd0e opened 5 years ago
So what can be improved here:
IMHO 'real' desktop mode (like in Chrome) is essential, 'cause it has much higher pixel density. It may be not easy to interact with features with touchscreen, but:
I do not know how to switch to Desktop mode in webview, but we can try same approach as used in AdvancedWebView.
It involves changing WebOptions with setUseWideViewPort
, setLoadWithOverviewMode
.
May be we also need to tune viewport meta: https://stackoverflow.com/questions/24209628/how-to-override-device-pixel-ratio
When I open intel in Chrome (android) I can switch desktop mode on.
In IITCm there is similar possibility: option
Force desktop mode
. But it not the same.Let's compare some metrics related to width:
window.innerWidth
is related to viewport width.document.body.offsetWidth
is related to full scrollable page width.innerWidth
offsetWidth
360
360
360
960
980
980
360
360
360
360
Physical resolution of my display:
1080
, andwindow.devicePixelRatio === 3
.So what is wrong here: IITCm (Force desktop mode) is not desktop mode in any meaning.
window.devicePixelRatio === 1
,