-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Resizing the live view iframe #249
Comments
@randy-johnson In rrweb-player, I use CSS transform scale to do resize: https://github.com/rrweb-io/rrweb-player/blob/master/src/Player.html#L66 Does it fit your need? |
Can you elaborate a bit? I am still a little lost. Thank You. |
I think the idea would be along the lines of the following?
Where the I've also got a solution based on a wrapping |
Wow, that was a lot easier than what I was trying to do. Thank You. |
as we face this problem we find new way to handle it for responsive
|
Hello,
I am working on a feature that resizes the iframe in the live viewer. This allows me to record events in a 34" screen and have the whole think viewable on a 23" screen.
It works good for the most part, but the mouse pointer is off. More details below.
Here is how I go about it:
This kind of works. The closer I am to the center of the screen on the recording screen the closer the mouse is to the proper point on the live view screen. The farther away I get from the center of the screen the less accurate the point is correct.
I did find that If I - 75 from the x coordinate like this,
the results are pretty close to accurate towards the center but get less accurate as I move closer to the edge just like before.
It is good enough for a demo but not so much long term.
I feel like I am so close to getting this to work but cannot seem to put a finger on the issue.
Do you have any advice, or functions or what I can possibly read about to get closer to my goal?
Thank You,
Randy
The text was updated successfully, but these errors were encountered: