Workaround change in behavior for Chrome window preventDefault

This commit is contained in:
Joshua Granick
2018-06-25 11:28:55 -07:00
parent c92960e6d7
commit ce50286f0a

View File

@@ -17,7 +17,7 @@
<script type="text/javascript" src="./::APP_FILE::.js"></script>
<script>
window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, false);
window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, { capture: false, passive: false });
if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) {
var meta = document.getElementById ("viewport");
meta.setAttribute ('content', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no');