no touch
This commit is contained in:
parent
905f217351
commit
ccd32c0e3e
|
@ -9,9 +9,10 @@ body {
|
||||||
font-family: 'Montserrat';
|
font-family: 'Montserrat';
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
canvas {
|
&:not(.notouch) {
|
||||||
cursor: none;
|
canvas {
|
||||||
|
cursor: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,11 +29,15 @@ const router = createRouter({
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
document.title = to.meta && to.meta.title ? to.meta.title.toString() : title;
|
document.title = to.meta && to.meta.title ? to.meta.title.toString() : title;
|
||||||
|
|
||||||
console.log('Navigating from', from.fullPath, 'to', to.fullPath);
|
console.log('Navigating from', from.fullPath, 'to', to.fullPath);
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (navigator.maxTouchPoints == 0) {
|
||||||
|
document.body.classList += 'notouch'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const pinia = createPinia()
|
const pinia = createPinia()
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
|
|
Loading…
Reference in New Issue