tz311
01/01/2024, 9:32 PMjw
01/01/2024, 9:57 PMjw
01/01/2024, 9:58 PMjw
01/01/2024, 9:58 PMjw
01/01/2024, 9:58 PMJustin Salér
01/02/2024, 6:36 AMprivate val isMobile: Boolean
get() {
val mobileKeywords = setOf("Mobile", "Android", "iPhone", "iPad", "iPod", "Windows Phone")
return mobileKeywords.any { keyword -> window.navigator.userAgent.contains(keyword) }
}
Maybe not ideal, but it is one way.tz311
01/02/2024, 6:53 AMJustin Salér
01/02/2024, 8:18 AM<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
to the head in the html-file it works okay on other browsers.
However, I read that touch interfaces are still lacking because of experimental. I only use buttons, and it seems like it is more ready than dragging.tz311
01/02/2024, 8:30 AM