I had done some changes to the library so that it can be used on elements inside HTML dialog. Existing behaviour is not broken.
There are some issues with respect to zoomContainerAppendTo even in the existing implementation. If the zoom container element is present below the element that user is trying to zoom mouse positions are not correct. I will try to fix it during my free time.
Please note while fixing above issue, will be changing the property names pageOffsetX and pageOffsetY. Actually, these properties are offsets to mouse pointer.
I had done some changes to the library so that it can be used on elements inside HTML dialog. Existing behaviour is not broken.
There are some issues with respect to zoomContainerAppendTo even in the existing implementation. If the zoom container element is present below the element that user is trying to zoom mouse positions are not correct. I will try to fix it during my free time.
Please note while fixing above issue, will be changing the property names pageOffsetX and pageOffsetY. Actually, these properties are offsets to mouse pointer.