Open shermanlo77 opened 2 years ago
The buttons for panning, centring and zooming are not listening to a mouse click event, and thus do not respond when clicking on it.
In src/script/view/workspace.js, I've tried changing
src/script/view/workspace.js
this.__zoom['in'].observe('click', function(event) {
to
this.__zoom['in'].click = function(event) {
or
this.__zoom['in'].addEventListener('click', function() {
but it doesn't fix it. I'm not sure why these buttons do not listen to a mouse click event.
They do respond to a mouse click programmatically, for example
me.__zoom['out'].click();
The buttons for panning, centring and zooming are not listening to a mouse click event, and thus do not respond when clicking on it.
In
src/script/view/workspace.js
, I've tried changingto
or
but it doesn't fix it. I'm not sure why these buttons do not listen to a mouse click event.
They do respond to a mouse click programmatically, for example