Having great fun with the webSDK today but have hit a snag. I need to be able to tell where Ive clicked or dragged relative to the control. Since we use absolute positioning I cant just use the offsetLeft properties of the object, they are always 0. I have tried half a dozen different ways to do this including walking up the parent tree and adding all the leftOffsets together as well as actually passing the left value that is setup in XTension and using that to calculate the offset.
They all appear to be off by the sum of the margins and borders in all the CSS up to that point. So with just one thing on the screen with all default Im off by 5 or 8 pixels or so and it gets worse the further you embed something. Or at least I think that is the case. How does Xojo figure out where a click has happened? Is there a framework call i can use to localize a mouse event?