question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] mouse.getPosition()

See original GitHub issue

Mouse instance stores position inside _x and _y props. Of course it is JS and nobody can stop one of accessing them, but they are not part of interface and it’s not good to use them like this. And it is often useful to get current cursor position and don’t track it manually.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
pavelfeldmancommented, Mar 2, 2021

First of all, thank you for filing this issue. We appreciate your input, in many ways Playwright is based on it. This particular feature request didn’t get enough stars for us to prioritize the work on it and hence is being closed. We are a relatively small team and we need to prioritize aggressively to deliver support and new features to you.

2reactions
terion-namecommented, Mar 3, 2021

@pavelfeldman you already have a PR for this that was closed for no reason

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mouse.GetPosition(IInputElement) Method - Microsoft Learn
The position of the mouse pointer is calculated relative to the specified element with the upper-left corner of element being the point of...
Read more >
Mouse Class Reference (SFML / Learn / 2.5.1 Documentation)
Get the current position of the mouse in window coordinates. This function returns the current position of the mouse cursor, relative to the...
Read more >
love.mouse.getPosition - Love2d.org
Returns the current position of the mouse.
Read more >
GetPosition - 2000 Things You Should Know About WPF
GetPosition method when the mouse pointer is within the boundaries of your application's main window. When the mouse is located outside of the ......
Read more >
How do I get the current mouse screen coordinates in WPF?
Mouse.GetPosition returns a Point, and PointToScreen converts the point to the screen coordinate. – erikH. Sep 19, 2013 at 11:06.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found