-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[Editor] Don't scroll when drawing (issue 17327) #19338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Editor] Don't scroll when drawing (issue 17327) #19338
Conversation
/botio integrationtest |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/a19122a9171aabb/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/0b0060456946c74/output.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit message doesn't include a reference to an issue (which it should), so I'm guessing that this is related to #17327?
If so, this is now the third time that that issue is being fixed. Hence this really needs a test-case to ensure that this won't regress yet again.
4cbcfb5
to
5fef0b8
Compare
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/0b0060456946c74/output.txt Total script time: 10.77 mins
|
hey @Snuffleupagus thanks for the review. I have changed the commit message to include the issue number #17688. I'd be happy to write the test myself, do you think it should be done within this PR or does it need a separate one? |
It should be possible to write an integration test which check the position of the first page, click on drawing button, draw something and the check that the position of the page is the same. |
Yeah, I'd be glad to. thanks for the hint! |
5fef0b8
to
0fc5641
Compare
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/a19122a9171aabb/output.txt Total script time: 26.19 mins
|
0fc5641
to
8b1e22e
Compare
the test case is passing locally: macOS on firefox: I decided to use Math.round because the x and y coordinates are integers on Firefox and floats on chrome |
8b1e22e
to
144de2d
Compare
Aren't the values before/after drawing the same (float or not) ? |
good point. I've removed the Math.round as its unnecessary, especially if we programatically move the drawing cursor by a specific x or y. |
Please squash the commits, since we don't use separate fixup commits in this project. |
7704746
to
78f612f
Compare
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/9466667843b396c/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/e7dd3329c3ad771/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/9466667843b396c/output.txt Total script time: 10.76 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/e7dd3329c3ad771/output.txt Total script time: 26.82 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
This patch is taken from #17688 which fixes the issue for Chrome. I'd need more info from @calixteman if this patch is fine.
After
Screen.Recording.2025-01-17.at.13.47.54.mp4
Before
Screen.Recording.2025-01-17.at.13.49.00.mp4