Skip to content
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

Zooming out on Canvas Element(s) causes Cropping in Replays #83682

Open
ReneGreen27 opened this issue Jan 17, 2025 · 7 comments
Open

Zooming out on Canvas Element(s) causes Cropping in Replays #83682

ReneGreen27 opened this issue Jan 17, 2025 · 7 comments

Comments

@ReneGreen27
Copy link
Member

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

This is being seen in a React project on latest SDK version (8.48.0)

This occurs when a user zooms out in their browser - ie holding down control and using their moses wheel to zoom out.

You will then see in the associated replays that the captured canvas displays zoomed out incorrectly in the player.

The element in question is a canvas and are confirmed to be snapshotting per the documentation.

Expected Result

For the replay to correct capture the zooming out of the canvas element(s).

Actual Result

Example replays and user view recordings can be found in internal ticket #142417

Product Area

Replays

Link

No response

DSN

No response

Version

No response

@getsantry
Copy link
Contributor

getsantry bot commented Jan 17, 2025

Assigning to @getsentry/support for routing ⏲️

@getsantry
Copy link
Contributor

getsantry bot commented Jan 21, 2025

Routing to @getsentry/product-owners-replays for triage ⏲️

@getsantry getsantry bot moved this from Waiting for: Support to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 21, 2025
@billyvg
Copy link
Member

billyvg commented Jan 21, 2025

can you take a look at this @c298lee?

@c298lee
Copy link
Member

c298lee commented Jan 22, 2025

The zooming in the example replay and the user view recordings match up. The issue does not seem to be with the zooming but with the canvas taking up less room than it should. In the recording, the canvas takes up the full screen, but in the replay, the canvas takes up ~66% of the screen. This is because the source image is 2534 x 1172 while the canvas is 3801 x 1758. I need to further investigate to see why the image dimensions don't match the canvas dimensions

@c298lee
Copy link
Member

c298lee commented Jan 28, 2025

@ReneGreen27 Could you ask the customer to provide a link to their project that I could debug with?

@ReneGreen27
Copy link
Member Author

@c298lee there is an example link provided in the internal ticket 142417 as shared above, I will also PM this to you :)

@optical
Copy link

optical commented Jan 31, 2025

Hi @c298lee, just a heads up that I'm the customer who lodged this ticket via support. If you need anything or have any questions, let me know.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Development

No branches or pull requests

5 participants