-
Notifications
You must be signed in to change notification settings - Fork 238
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
iframe #943
iframe #943
Conversation
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.
apparently i did just forget to test if y position worked |
i dont remember if we get any mouse events at all while an iframe is focused, will have to see |
the set x position and y position work kinda weird. it will only reset it to the new value if that value is not within the iframe at all. A better way to do this (imo) would be to just always set the middle to that position. I think this is what lily was saying. It seems that the mouse x and y do not change while it is over the iframe. You could add an event listener to the iframe that while set those things. |
Unfortunately browsers just dont give us mouse events while you're hovering over the iframe. you may notice another Scratch mod's version of this has the same problem. |
could yuo use messages to send back the mouse pos to the main page? |
How do you propose I run custom scripts on |
oh. |
There is very good reason for browsers to do that. Consider if I found a way to embed Wordle. By looking at your mouse movements I could figure out which words you're typing with the on-screen keyboard. That's relatively harmless, but now consider that it's not Wordle, but rather your bank. That's the problem |
might be wrong about this actually, wait |
Aside from the mouse events not firing when the frame is being hovered issue -- what other blocks should be added? |
only works in staging right now