Created
July 24, 2017 04:21
-
-
Save chuanxd/b499f0e2523604e570a5fd8830a9a0a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (/Android */.test(navigator.appVersion)) { | |
window.addEventListener('resize', () => { | |
if (document.activeElement.tagName === 'INPUT') { | |
window.setTimeout(() => { | |
document.activeElement.scrollIntoViewIfNeeded() | |
}, 0) | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment