Hello,
in my attempts of learning Go, I stumbled over gowut. It looks very interesting for me and I tried to build
a little example of my own. The main goal was to display a rendered picture of the mandelbrot set, with the
ability to edit the specific parameters to render a new picture. Therfore I also try gathering the coordinates
of the mandebrot set while moving with the mouse cursor over the image.
But here I found that the coordinates returned by gwu.Event.Mouse() seems not correct, if the image is greater then the view port in the browser.
For example:
After runing the example code, the window in the browser shows a panel which contains an editable field.
Below this panel I placed a second panel for the image.
I get the correct coordinates of the left upper corner of the image,
also the coordinates of the lower right corner of the image within the viewport (without scrolling) are ok,
but when I scroll down to the real lower right corner of the image and check the coordinates, the returned y-value is wrong, its still
the same as before scrolling. If you move the mouse in the upper area of the image (without scrolling), the y-value
decrease and will change at least into a negativ value, if you move far enough.
I would expect, that regardless of srolling, the coordinates returned while clicking into the image should be within the range of the image size. Please let me know if I am wrong, or if its an issue with gowut.
I have attached my go program.
Thanks!