fix: Avoid double tap on iOS and close navigation on click
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
12
src/mixins/isTouchDevice.js
Normal file
12
src/mixins/isTouchDevice.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
export default {
|
||||
computed: {
|
||||
isTouchDevice() {
|
||||
return ('ontouchstart' in window) || (navigator.maxTouchPoints > 0)
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user