I am trying to write a plotting program that will have some user interaction. In particular, when the mouse enters a particular rectangle (let's call it the "plotting area") I need to show the (x,y) coordinates relative to the top left corner of that rectangle. Using "import Mouse" I get absolute coordinates for the whole window, but I don't know how to (easily) get the coordinates of the rectangle so that I can calculate the relative offset. Any hint will be appreciated.
-- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
