Callback when max/min scale reached
sant11h opened this issue · 3 comments
sant11h commented
Hello! We appreciate your work for this lib.
I was wondering if you can add some sort of callback when the max or min scale is reached, for example:
onMaxScaleReached(() => // I want to do something here)
With this feature we give to the lib users the possibility of enabling or disabling the zoom in/out buttons when those events happen which is the use case that I need.
Thanks!
worka commented
Hello. You do not fit rescale()
method for this?
rescale(instance) {
// instance.content.minScale
// instance.content.maxScale
// instance.content.currentScale
}
sant11h commented
Yes, that method did the trick.
Thanks for the support!
worka commented
It would be awesome if you could add to here common variant of your private solution for descendants. I will paste link to this issue in RM.