Workaround change in behavior for Chrome window preventDefault
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user