Add support for mouse scroll
Add support for mouse scroll as I couldn't get the cy.trigger("wheel") to work.
Thank you for this addition. Left a couple of comments
I see the 1 failling test, any ideas what can be the reason?
The build says the failure is in "realTouch".
https://app.circleci.com/pipelines/github/dmtrKovalenko/cypress-real-events/274/workflows/951c24fc-f0a9-4862-9b15-54129a931080/jobs/829/artifacts
touches using provided 0 for one of the axis https://829-315086372-gh.circle-artifacts.com/1/cypress/screenshots/touch.spec.ts/cy.realTouch%20--%20touches%20using%20provided%200%20for%20one%20of%20the%20axis%20%28failed%29.png
touches with a custom radius https://829-315086372-gh.circle-artifacts.com/1/cypress/screenshots/touch.spec.ts/cy.realTouch%20--%20touches%20with%20a%20custom%20radius%20%28failed%29.png
This is what I found out. When test runs and scale is not 100% then test fails in certain cases. When the scale is 100% the all tests pass. So I've updated tests to set viewport small enough to get 100% scale.
What do you mean by scale? When window is zoomed? We have a guard for that and correctly handling this in getCypressElementCoorsinate
What do you mean by scale? When window is zoomed? We have a guard for that and correctly handling this in
getCypressElementCoorsinate
This one fails because the scale is not 100%. In the screenshot it says 86%.
This when it's 100% scale it passes. Strange..

I feel like there is something wrong with the way "position" is calculated when scale is not "1".
When I do a "cy.trigger" the correct box receives the wheel event.
cy.get(".main").trigger("wheel", { x: ($main.width() - $smallbox.width()) - 2, y, deltaX: 14, deltaY: 14 });
But when I do the same position for realMouseWheel it fails when scale is less than 1.
cy.get(".main").realMouseWheel({ position: { x: ($main.width() - $smallbox.width()) - 2, y }, deltaX: 11, deltaY: 11 });
I'm calling "getCypressElementCoordinates".
const { x, y } = getCypressElementCoordinates(subject, options.position, options.scrollBehavior);
Do you think there is a way to do it the way cypress does for "trigger" ?