(Newsgroup followup from a discussion in bug 4821):

Essentially, chrome uses event.screenX/Y to get screen coordinates to
place popups.  The page can also see screenX/Y.  The issue is that we
only want to expose scaled coordinates to webpages, but we have to use
unscaled coordinates to position popups (specifically the autoscroll
popup and the context menu) correctly.

One solution I proposed in the bug was to vary the return value of
screenX/Y depending on where the event handler is attached.  This
allows transparently providing the correct coordinates to both chrome
and content, but it feels like a bit of a hack.

Another suggestion was to also provide a rawScreenX/Y API.  This could
also work, but it would require changes to chrome code, and the new
API would likely be visible to webpages.

Suggestions?

-Eli

_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to