Mobile: top level heart reaction on double tab

This commit is contained in:
10G Meow 2024-05-18 22:13:07 +03:00
parent ac184de2b2
commit 62cf15f2de
16 changed files with 199 additions and 39 deletions

View file

@ -14,7 +14,9 @@
</v-btn>
</div>
<!-- SLOT FOR CONTENT -->
<slot></slot>
<span ref="messageInOutRef">
<slot></slot>
</span>
<v-avatar
class="avatar"
size="32"
@ -32,10 +34,16 @@
<script>
import SeenBy from "./SeenBy.vue";
import messageMixin from "./messageMixin";
import util from "../../plugins/utils";
export default {
mixins: [messageMixin],
components: { SeenBy }
components: { SeenBy },
mounted() {
if(util.isMobileOrTabletBrowser() && this.$refs.messageInOutRef) {
this.initMsgHammerJs(this.$refs.messageInOutRef);
}
}
};
</script>
<style lang="scss">