Closed ToonTalk closed 4 years ago
thanks, Ken. There seems to be an issue with the function that determines coordinates on a canvas embedded in a web page. This is biting me in other contexts as well. Investigating...
Can you perhaps check again with the beta version? I made a few changes to how coordinates are determined in Morphic. Thanks!
I just tried an HTML file whose entire contents are:
Oh, now I get it! This isn't so much about iFrames, but about whether the stage is scaled somehow. Then it will show fractional coordinates, because of the scaling. Duh. Thanks!
https://snap.berkeley.edu/project?user=toontalk&project=mouse%20test
This led to a bug in my project since it was computing a list index using mouse x and y and it worked fine unless in an iframe.
Windows 10 Chrome Version 81.0.4044.138 (Official Build) (64-bit)