leonardosalles / ionic2-zoom-area

A zoom area component with pinch support
MIT License
33 stars 13 forks source link

Controls cannot be hidden or shown permanently #18

Open phikani opened 6 years ago

phikani commented 6 years ago

Hi,

I am using the ionic2-zoom-area in one of my projects (Ionic 3) and I have following problem: I am not able to show or hide the control buttons in the top right corner. They change between being hidden or shown with every interaction with the app. For example, when opening a modal and closing it again, the buttons appear when they were hidden before (and the other way round). Any suggestions about how to solve this problem? It seems like setting 'controls' to true or false (as describe in the readme) does not have any effect...

Besides, I still got trouble with compiling in the prod mode, even after having read the comments made at similar posts... Could it be that the problem reappeared with a new version of typescript?

Thanks a lot in advance!

Kind regards

Philipp

phikani commented 6 years ago

To be more precise: I use the ionic2-zoom-are in combination with an image in SVG format. In my application, I add points as markers on the SVG. Whenever I do so (by tapping a certain position in the image) the controls disapper (if they were shown before), or show, if they were hidden before. Setting the 'controls' attribute to true or false as explained in the docs does not change this behavior and does not seem to have any effect at all...

Help would be really appreciated :)

Thank you very much!