🐛 Fix increase and decrease zoom

This commit is contained in:
Andrés Moya 2020-05-13 13:17:05 +02:00
parent 0c12d7b0d2
commit 481a43096e
2 changed files with 4 additions and 4 deletions

View file

@ -1497,8 +1497,8 @@
"ctrl+shift+l" #(st/emit! (toggle-layout-flag :layers))
"ctrl+shift+r" #(st/emit! (toggle-layout-flag :rules))
"ctrl+shift+d" #(st/emit! (toggle-layout-flag :dynamic-alignment))
"+" #(st/emit! increase-zoom)
"-" #(st/emit! decrease-zoom)
"+" #(st/emit! (increase-zoom nil))
"-" #(st/emit! (decrease-zoom nil))
"ctrl+g" #(st/emit! create-group)
"ctrl+shift+g" #(st/emit! remove-group)
"shift+0" #(st/emit! reset-zoom)

View file

@ -143,8 +143,8 @@
[:div.options-section
[:& zoom-widget
{:zoom zoom
:on-increase #(st/emit! dw/increase-zoom)
:on-decrease #(st/emit! dw/decrease-zoom)
:on-increase #(st/emit! (dw/increase-zoom nil))
:on-decrease #(st/emit! (dw/decrease-zoom nil))
:on-zoom-reset #(st/emit! dw/reset-zoom)
:on-zoom-fit #(st/emit! dw/zoom-to-fit-all)
:on-zoom-selected #(st/emit! dw/zoom-to-selected-shape)}]