Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panning, centring and zooming buttons do not listen to click #53

Open
shermanlo77 opened this issue Jun 10, 2022 · 0 comments
Open

Panning, centring and zooming buttons do not listen to click #53

shermanlo77 opened this issue Jun 10, 2022 · 0 comments

Comments

@shermanlo77
Copy link
Contributor

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

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant