From 7f6bf42f60c64219235fb97c889886acf6c0e264 Mon Sep 17 00:00:00 2001 From: Yifan Xu Date: Fri, 26 Apr 2019 15:09:52 +0100 Subject: [PATCH] provide an optional property to detect_on of interactivity --- src/App.vue | 1 + src/components/Main.vue | 9 +++++++++ src/vue-particles/vue-particles.vue | 13 ++++++++++--- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index ac78b014..2c4c6c11 100644 --- a/src/App.vue +++ b/src/App.vue @@ -31,6 +31,7 @@ hoverMode="grab" :clickEffect="true" clickMode="push" + detectOn="canvas" > diff --git a/src/components/Main.vue b/src/components/Main.vue index bd591912..39b0842b 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -175,6 +175,15 @@ Vue.use(VueParticles) "push", "remove", "repulse", "bubble" + + detectOn + String + canvas + + Available detect on: + "canvas", "window" + + diff --git a/src/vue-particles/vue-particles.vue b/src/vue-particles/vue-particles.vue index aa54ea15..92d704ba 100644 --- a/src/vue-particles/vue-particles.vue +++ b/src/vue-particles/vue-particles.vue @@ -17,6 +17,7 @@ :hoverMode="hoverMode" :clickEffect="clickEffect" :clickMode="clickMode" + :detectOn="detectOn" >