feat: add haptic feedback to all action buttons

This commit is contained in:
benonymity 2022-12-08 00:28:28 -05:00
parent 96dde8cf31
commit 1aa6a441f3
16 changed files with 113 additions and 42 deletions

View file

@ -18,6 +18,8 @@
</template>
<script>
import { Haptics, ImpactStyle } from '@capacitor/haptics';
export default {
props: {
value: Boolean,
@ -126,7 +128,8 @@ export default {
}
},
methods: {
clickedOption(val) {
async clickedOption(val) {
await Haptics.impact({ style: ImpactStyle.Medium });
if (this.selected === val) {
this.selectedDesc = !this.selectedDesc
} else {
@ -139,4 +142,4 @@ export default {
},
mounted() {}
}
</script>
</script>