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.

Mouse / Wheel Scrolling

See original GitHub issue

i was wondering if there is a similar function like Mouse.WheelAsync(x,y) as in PuppeteerSharp in Mouse.cs https://github.com/hardkoded/puppeteer-sharp/blob/4c7a0bbf96a0cba7edec5c76bf7528fb4f5312d8/lib/PuppeteerSharp/Input/Mouse.cs#L139

Or do we have an other mechanism to simulate scrolling on a page?

thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nor0xcommented, Oct 13, 2020

thanks for the info - i will have a look in the upstream. In my case i would simulate mouse wheel scrolling, without a reference to a specific DOM element.

currently i’m using this script to achieve this - where x and y are my scrolling deltas:

page.EvaluateAsync($"window.scroll(window.scrollX + {x}, window.scrollY + {y})");

0reactions
pavelfeldmancommented, Jun 4, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Your Mouse Wheel Is Scrolling the Wrong Way and ...
Why Your Mouse Wheel Is Scrolling the Wrong Way and How to Fix It · 1. Just Blow the Dust Away · 2....
Read more >
What to Do If Your Mouse Scroll Wheel Jumps in Windows ...
Similarly, go to Control Panel > Mouse. 2. Under the Wheel tab, turn down the scroll speed. 3. Go to the Pointer Options...
Read more >
Mouse wheel "jumps" in opposite direction when scrolling
I looked for solutions online, and I found a suggestion to blow compressed air into the spaces next to the scroll wheel. The...
Read more >
How to Fix It When Your Mouse Scroll Is Not Working
When the mouse won't scroll, there are two issues that most commonly cause it. The first is dust and dirt causing mechanical issues...
Read more >
Mouse wheel scrolls the page down then up, or up then down
No, really: it happened to me many, many times, and the cause so far has always been dust inside the mouse. It gets...
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