Skip to content
Snippets Groups Projects
Commit 949c81f9 authored by Toby Milner-Gulland's avatar Toby Milner-Gulland
Browse files

updated to add dragging fix to onboarding nodes as well

parent 451c1174
Branches feature/draggable
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
:x="50" :x="50"
:y="15" :y="15"
:z="1" :z="1"
:scale="scale"
:draggable="true" :draggable="true"
:resizable="false" :resizable="false"
style="background-color: #6fcf97" style="background-color: #6fcf97"
...@@ -138,6 +139,7 @@ export default { ...@@ -138,6 +139,7 @@ export default {
computed: mapState({ computed: mapState({
hidetipsstate: (state) => state.hidetipsstate, hidetipsstate: (state) => state.hidetipsstate,
scale: (state) => state.ui.scale,
}), }),
methods: { methods: {
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
:x="5" :x="5"
:y="15" :y="15"
:z="1" :z="1"
:scale="scale"
:draggable="true" :draggable="true"
:resizable="false" :resizable="false"
style="background-color: #6fcf97" style="background-color: #6fcf97"
...@@ -53,6 +54,7 @@ ...@@ -53,6 +54,7 @@
:x="600" :x="600"
:y="15" :y="15"
:z="1" :z="1"
:scale="scale"
:draggable="true" :draggable="true"
:resizable="false" :resizable="false"
style="background-color: #6fcf97" style="background-color: #6fcf97"
...@@ -157,6 +159,7 @@ ...@@ -157,6 +159,7 @@
import draggable from '@/experimental/Draggable' import draggable from '@/experimental/Draggable'
import Router from '@/router' import Router from '@/router'
import marked from 'marked' import marked from 'marked'
import { mapState } from 'vuex'
export default { export default {
data: function () { data: function () {
...@@ -221,6 +224,9 @@ export default { ...@@ -221,6 +224,9 @@ export default {
this.$refs.microcosm.focus() this.$refs.microcosm.focus()
}, },
}, },
computed: mapState({
scale: (state) => state.ui.scale
}),
components: { components: {
draggable, draggable,
}, },
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
:x="540" :x="540"
:y="15" :y="15"
:z="1" :z="1"
:scale="scale"
:draggable="true" :draggable="true"
:resizable="false" :resizable="false"
style="background-color: #6fcf97" style="background-color: #6fcf97"
...@@ -31,6 +32,7 @@ ...@@ -31,6 +32,7 @@
<script> <script>
import marked from 'marked' import marked from 'marked'
import draggable from '@/experimental/Draggable' import draggable from '@/experimental/Draggable'
import { mapState } from 'vuex'
export default { export default {
data: function () { data: function () {
return { return {
...@@ -39,8 +41,9 @@ export default { ...@@ -39,8 +41,9 @@ export default {
tipsplease: true, tipsplease: true,
} }
}, },
computed: mapState({
mounted() {}, scale: (state) => state.ui.scale,
}),
filters: { filters: {
marked: marked, marked: marked,
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment