shaigem / BlazorPanzoom

Blazor wrapper for timmywil's panzoom library that helps make zooming and panning of Blazor components and elements easier
https://shaigem.github.io/BlazorPanzoom/
MIT License
44 stars 12 forks source link

[Question] A way to receive events from the panned & zoomed element? #13

Closed janseris closed 2 years ago

janseris commented 2 years ago

Hi, thanks for this awesome tool. I am having problems with catching events from the element which has @ref="@context.ElementReference" - the panned and zoomed element. Is there any way to handle onclick (and all other events) from that element?

Edit: it works well.

Thank you

ajitpal2311 commented 1 year ago

I am having similar problem @janseris @shaigem . I am using pan zoom component for a div which contains img and an overlaying canvas and I want handle mouse events on the canvas but apparently panzoom blocks it. How did you solve this problem?