Comment 8 for bug 136985

Revision history for this message
In , Klaus Reimer (kay) wrote :

Yes, still happens in Firefox 3.6.6 with a fresh profile. The bug demo page is still online so everyone can try it out easily. Just click the link and move the mouse cursor over the scrollbars of the DIV and see the mouse position which is then not relative to the top/left corner of the DIV but instead relative to the top/left corner of the scrollbar.

I tried it now in Chrome, too: Works perfectly. Just to clarify: I don't know if there is any spec how a browser should work in this situation. So I don't know if this can be called a "bug". But the fact is that ALL browsers EXCEPT Firefox works the same. The mouse-position is always relative to the top/left corner, doesn't matter if mouse cursor is over the div, the scrollbars or the small square between the scrollbars. Firefox is the only browser which has a different opinion how mouse coordinates should be calculated.