Skip to content

Testing pointer movements #1435

Discussion options

You must be logged in to vote

Thank you for your detailed response, it's going to be useful to learn more about this subject.

I should have given more info:

  • I'm actually writing the test for the component itself in the MudBlazor test suite
  • The overlay listens to @onpointerdown, @onpointerup, @onpointermove
    • pointerdown and pointerup simply update the color selector location to where the pointer is
    • pointermove updates the color selector in the same way if e.Buttons == 1

I was able to solve it like this after reviewing the points above:

overlay.PointerMove(new PointerEventArgs { OffsetX = x2, OffsetY = y2, Buttons = 1 });

Replies: 1 comment 1 reply

Comment options

linkdotnet
Apr 5, 2024
Maintainer Sponsor

You must be logged in to vote
1 reply
@danielchalmers
Comment options

Answer selected by danielchalmers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants