Closed manikbajaj closed 5 years ago
It should work if you use event delegation in jQuery and bind it to lens container.
@thdoan thank you for your reply I will try this
@thdoan I have been struggling with the solution posted by you. Would be really grateful if you have a look at the Stackoverflow question I have created. I have a link to the jsFiddle as well in there for a clear picture on the problem I am facing.
As a quick fix, try changing line 232 from $container.off().on(...)
to $container.on(...)
.
I have tried a lot but the mousedown event does not fire when the zoom lens is active. We need to track the mousedown event so that we are able to find the mouse position and then use RaphaelJs to draw lines on the image. Can you please take a look at this and let me know if there is a workaround.