dispatchMouseEvent.type mouseWheel support
See original GitHub issueI think we can implement a mouse.wheel
function, which would call dispatchMouseEvent with type mouseWheel
async wheel(options = {}) {
await this._client.send('Input.dispatchMouseEvent', {
type: 'mouseWheel',
deltaX: options.deltaX,
deltaY: options.deltaY
});
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:10
- Comments:6 (3 by maintainers)
Top Results From Across the Web
dispatchMouseEvent.type mouseWheel support #4119 - GitHub
I think we can implement a mouse.wheel function, which would call dispatchMouseEvent with type mouseWheel async wheel(options = {}) { await ...
Read more >Input domain - Chrome DevTools Protocol
dispatchMouseEvent #. Dispatches a mouse event to the page. parameters. type: string. Type of the mouse event.
Read more >Element: mousewheel event - Web APIs | MDN
The obsolete and non-standard mousewheel event is fired asynchronously at an Element to provide updates while a mouse wheel or similar ...
Read more >input - Go Packages
Package input provides the Chrome DevTools Protocol commands, types, and events for the Input ... func DispatchMouseEvent(typeVal MouseType, x float64, ...
Read more >clj-chrome-devtools.commands.input - dispatch-key-event
(dispatch-mouse-event {:as params, :keys [type x y modifiers timestamp button ... :delta-x, X delta in CSS pixels for mouse wheel event (default: 0)....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It isn’t enough for us to check the body scroll position. Internal elements could scroll. Scrolls could be captured. They could land in shadow dom or iframes. Trying to figure out when a scroll has finished from JavaScript is going to require many layers of hacks, if it is doable at all.
There have been some patches related to this landing in Chromium. I need to find some cycles to move dispatchMouseEvent to a better code path for wheel events, but right now it’s unfortunately not a high priority for me.
It is, and in fact it was contributed recently: #6141 🎉