Audio stability, snapshots

This commit is contained in:
Robin Davies
2024-10-06 00:00:20 -04:00
parent 9d4cc6e978
commit 472703627e
27 changed files with 956 additions and 844 deletions
+2 -1
View File
@@ -21,6 +21,7 @@
// converts android handling of the virtual keyboard to use pan instead of zoom.
import { isAndroidHosted } from './AndroidHost';
import Rectangle from './Rectangle';
@@ -45,7 +46,7 @@ export default class VirtualKeyboardHandler
}
}
if ('visualViewport' in window) {
if ('visualViewport' in window && isAndroidHosted()) {
window.visualViewport?.addEventListener('resize', this.handleVisualViewportResize.bind(this));
} else {
enabled = false;