Canvas
Canvas copied to clipboard
Question: how to bind to events?
Is it possible to bind event handlers to the underlying blazor component (ElementRef?) for e.g. UIMouseEventArgs or UITouchEventArgs?
Hello,
Not today. Do you want to submit a PR for that?
Not too important - and don't know if I'm deep enough into the material. Would you have any links to examples?
Currently worked around with wrapping into a div and fiddling with nasty offsets - for a blazor team demo/training.
<div onclick="@OnClick">
<BECanvas ref="@_canvasComponent" width="@Width" height="@Height"></BECanvas>
</div>
But thanks for you reply!
I have created a pull request for this #23
Is there any update to this? Is there now a way to get user events on a BECanvas?