What would be the best way to handle buttons and other input elements within a pan container?
@onclick works, however, it gets triggered even when the user is panning.
The obvious solution to this is to use @onmousedown and @onmouseup and check the mouse position delta.
That will not work with Blazor because it seems to attach all events to the root document.
to blazorpanzoom.js so that the events bubble up to document. (The default function calls stopPropagation())
Would be nice to be able to set this from C# somehow.
What would be the best way to handle buttons and other input elements within a pan container? @onclick works, however, it gets triggered even when the user is panning.
The obvious solution to this is to use @onmousedown and @onmouseup and check the mouse position delta. That will not work with Blazor because it seems to attach all events to the root
document
.