Merge pull request #459 from benonymity/hapticFeedback

Add haptic feedback
This commit is contained in:
advplyr
2022-12-09 17:08:17 -06:00
committed by GitHub
17 changed files with 113 additions and 65 deletions
+5 -3
View File
@@ -212,7 +212,8 @@ export default {
}
},
methods: {
clearSelected() {
async clearSelected() {
await this.$hapticsImpactMedium()
this.selected = 'all'
this.show = false
this.$nextTick(() => this.$emit('change', 'all'))
@@ -220,7 +221,7 @@ export default {
clickedSublistOption(item) {
this.clickedOption({ value: `${this.sublist}.${item}` })
},
clickedOption(option) {
async clickedOption(option) {
if (option.sublist) {
this.sublist = option.value
return
@@ -231,6 +232,7 @@ export default {
this.show = false
return
}
await this.$hapticsImpactMedium()
this.selected = val
this.show = false
this.$nextTick(() => this.$emit('change', val))
@@ -244,4 +246,4 @@ export default {
.filter-modal-wrapper {
max-height: calc(100% - 320px);
}
</style>
</style>