Resize GPU preview on sidebar toggle

This commit is contained in:
Joel Collins 2019-03-21 20:02:08 +00:00
parent dc33bed31c
commit 9ea17ce560
2 changed files with 12 additions and 0 deletions

View file

@ -35,6 +35,10 @@ export default {
},
mounted() {
// A global signal listener to change the GPU preview state
this.$root.$on('globalResizePreview', (state) => {
this.handleDoneResize()
})
// A global signal listener to change the GPU preview state
this.$root.$on('globalTogglePreview', (state) => {
console.log(`Toggling preview to ${state}`)