Skip to content

Commit

Permalink
[blockly] Enable drag mode and move with wheel (#2419)
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
  • Loading branch information
jimtng authored and florian-h05 committed Feb 28, 2024
1 parent 4ee3e54 commit d99d3bf
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1202,16 +1202,19 @@ export default {
toolbox: this.$refs.toolbox,
horizontalLayout: !this.$device.desktop,
theme: this.$f7.data.themeOptions.dark === 'dark' ? DarkTheme : undefined,
zoom:
{
controls: true,
wheel: true,
startScale: 1.0,
maxScale: 3,
minScale: 0.3,
scaleSpeed: 1.2,
pinch: true
},
zoom: {
controls: true,
wheel: true,
startScale: 1.0,
maxScale: 3,
minScale: 0.3,
scaleSpeed: 1.2,
pinch: true
},
move: {
drag: true,
wheel: true
},
trashcan: false,
showLabels: false,
renderer: this.getCurrentRenderer()
Expand Down

0 comments on commit d99d3bf

Please sign in to comment.