phenotips / open-pedigree

A free and open-source pedigree tool by PhenoTips®
GNU Lesser General Public License v2.1
46 stars 25 forks source link

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

Open shermanlo77 opened 2 years ago

shermanlo77 commented 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

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();