fix android scroll

This commit is contained in:
Pete Matsyburka
2025-01-17 01:37:23 +02:00
parent b4834c7674
commit a4e372ff5c
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -1113,9 +1113,9 @@ export default {
this.minimizeForm()
}
const isMobileSafariIos = 'ontouchstart' in window && navigator.maxTouchPoints > 0 && /AppleWebKit/i.test(navigator.userAgent)
const isMobile = 'ontouchstart' in window && navigator.maxTouchPoints > 0 && /AppleWebKit|android/i.test(navigator.userAgent)
if (isMobileSafariIos || /iPhone|iPad|iPod/i.test(navigator.userAgent)) {
if (isMobile || /iPhone|iPad|iPod/i.test(navigator.userAgent)) {
this.$nextTick(() => {
const root = this.$root.$el.parentNode.getRootNode()
const scrollbox = root.getElementById('scrollbox')