fix infinite recursion on zoom

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2023-01-14 18:53:46 -03:00
parent c30314b2ac
commit a591b20914
3 changed files with 4 additions and 5 deletions

View file

@ -347,11 +347,11 @@
<script src="js/lib/layers.js?v=a1f8aea" type="text/javascript"></script>
<script src="js/lib/commands.js?v=bf23c83" type="text/javascript"></script>
<script src="js/lib/toolbar.js?v=b3ffbff" type="text/javascript"></script>
<script src="js/lib/toolbar.js?v=306d637" type="text/javascript"></script>
<script src="js/lib/ui.js?v=76ede2b" type="text/javascript"></script>
<script
src="js/initalize/layers.populate.js?v=fcca23e"
src="js/initalize/layers.populate.js?v=39785ac"
type="text/javascript"></script>
<!-- Configuration -->

View file

@ -322,8 +322,7 @@ mouse.listen.camera.onwheel.on((evn) => {
//viewport.transform(imageCollection.element);
toolbar._current_tool.state.redrawui &&
toolbar._current_tool.state.redrawui();
toolbar._current_tool.redrawui && toolbar._current_tool.redrawui();
});
const cameraPaintStart = (evn) => {

View file

@ -91,7 +91,7 @@ const toolbar = {
enabled: false,
_element: null,
state: {
redrawui: () => tool.redraw(),
redrawui: () => tool.state.redraw && tool.state.redraw(),
},
options,
/**