UI fixes & refactoring

This commit is contained in:
Čarodej
2021-10-29 15:58:54 +02:00
parent 2d7b6e4e05
commit 351d57b103
15 changed files with 216 additions and 768 deletions

View File

@@ -80,21 +80,28 @@ export default {
},
methods: {
clickFilter(e) {
this.clicks++
if (this.clicks === 1) {
let self = this
if (this.$isMobile()) {
this.clickedItem(e)
}
this.timer = setTimeout(() => {
this.clickedItem(e)
self.clicks = 0
}, this.delay);
if (! this.$isMobile()) {
this.clicks++
} else {
clearTimeout(this.timer);
if (this.clicks === 1) {
let self = this
this.goToItem(e)
this.clicks = 0;
this.timer = setTimeout(() => {
this.clickedItem(e)
self.clicks = 0
}, this.delay);
} else {
clearTimeout(this.timer);
this.goToItem(e)
this.clicks = 0;
}
}
},
drop() {