aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

[Blazor] Include mouse position in page coordinates in UIDragEventArgs

Open SamVogelskamp opened this issue 7 years ago • 5 comments

Expand the current UIDragEventArgs by pageX and pageY variables.

SamVogelskamp avatar Feb 01 '19 08:02 SamVogelskamp

@danroth27, FYI regarding the milestone and priority assignment.

mkArtakMSFT avatar Feb 10 '19 04:02 mkArtakMSFT

This would include providing extra information on the event args in addition to what the DOM provides. While this is probably the most straightforward way to proceed, we've considered it in the past and didn't do it right away.

Doing something like this would involved a more thorough look at the events in general and trying to understand what else we would want to polyfill because there are a few notable cases (scrolling is similar).

rynowak avatar Feb 22 '19 04:02 rynowak

Dup of https://github.com/dotnet/aspnetcore/issues/17552

pranavkm avatar Jul 06 '20 20:07 pranavkm

It will be nice to expose PageX and PageY properties in the MouseEventArgs too. Currently, it's impossible to calculate the absolute position of the visible part of the screen.

KristianMariyanov avatar Jul 24 '20 07:07 KristianMariyanov

We already have ScreenX/ScreenY and ClientX/ClientY and OffsetX/OffsetY. I think these will cover typical use cases.

If there are needs for even more types of coordinate, we'd handle that through #17552, so I'll close this as a duplicate of that.

SteveSandersonMS avatar Oct 14 '20 14:10 SteveSandersonMS