BlazorPanzoom
BlazorPanzoom copied to clipboard
How can I change to annotation mode when viewing mode default is for Pan/Zoom? MouseDown event override
Hi All,
I am new to Blazor wasm and I am doing some image detection in the razor file :
<Panzoom @ref="_panzoomSrc_markup" WheelMode="WheelMode.ZoomWithWheel" > <div @ref="@context.ElementReference"> <Canvas @ref="srcCanvas_markup" id="opencvCanvas_markup" width="@imgWidth" height="@imgHeight" onmousemove="@HandleMouseMove" onmousedown="@HandleMouseDown" onmouseup="@HandleMouseUp">
Your browser does not support the HTML5 canvas tag.
</Canvas>
</div>
But it seems the canvas can't do the mousedown event which is blocked by panzoom I guess. Is there way to swtich to annotation mode to select a bounding box for a note in the canvas image?
Best regards, Albert