BlazorPanzoom icon indicating copy to clipboard operation
BlazorPanzoom copied to clipboard

How can I change to annotation mode when viewing mode default is for Pan/Zoom? MouseDown event override

Open albertliu63 opened this issue 10 months ago • 0 comments

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?

image

Best regards, Albert

albertliu63 avatar Apr 08 '24 09:04 albertliu63