My latest project involved creating a responsive website with nodejs integration, and it performs well on various devices.
However, a problem arises when viewing the website on the Windows Phone IE browser - the webpage refuses to scroll down. The cause of this issue eludes me.
/*css*/
@media (max-width: 400px) {
@-ms-viewport {
width: 320px;
}
}
/*js*/
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style");
msViewportStyle.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}"));
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
}
Despite applying the above code patches to address the responsiveness issues on Windows Phone, the scrolling problem persists. If anyone has insight on how to resolve this, please share.