Skip to content

Commit

Permalink
feat : add back the zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeBather committed Feb 13, 2023
1 parent 4c185c3 commit 9789d0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/blockly/blockly.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ onMounted(() => {
colour : '#888',
snap : false
},
zoom:{
controls:true,
wheel:true,
startScale:1,
maxScale:3,
minScale:0.3,
scaleSpeed:1.2
}
})
window.addEventListener('resize',()=>{
Blockly.svgResize(workspace);
Expand Down

0 comments on commit 9789d0b

Please sign in to comment.