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

fix: correct mouse events lost when resizing preview and cursor is inside iframe #1474

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emilio-balda
Copy link

There is a bug when resizing the screen inside the Preview panel. Once the mouse goes inside the iframe of the rendered website, all mouse events stop being captured.
That leads to strange behaviour when resizing.

The solution was to use pointer events instead of mouse events.

Here is a video showing the before and after the fix:
https://www.loom.com/share/88f695cd907b463d92b10290184cc6ae?sid=f559c4f7-49f1-4772-81f0-def08fb07f1b

@leex279
Copy link
Collaborator

leex279 commented Mar 8, 2025

thanks for the PR. Can you please take a look at this #1420 and tell me if this would include your fixes?

Maybe @Stijnus and you can find out how to do best and merge these requests if make sense.

@emilio-balda emilio-balda marked this pull request as draft March 11, 2025 15:27
@emilio-balda emilio-balda marked this pull request as ready for review March 11, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants