From 8d31285f21e4076f4d7c78e676c898313895753b Mon Sep 17 00:00:00 2001 From: Arun Negi Date: Mon, 11 May 2020 12:34:08 +0000 Subject: [PATCH] Feat: Pause timer on hover. (#21) --- src/js/Component.vue | 14 +++++++++++--- src/js/helpers.js | 29 ++++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/src/js/Component.vue b/src/js/Component.vue index 0057f70..09df046 100644 --- a/src/js/Component.vue +++ b/src/js/Component.vue @@ -7,6 +7,8 @@ v-show="isActive" class="toast" :class="[`toast-${type}`, `is-${position}`]" + @mouseover="mouseover = true" + @mouseleave="mouseover = false" @click="whenClicked">

@@ -15,7 +17,7 @@