Bug 29640 - Negative mouse event clientX/Y after zooming and scrolling
Summary: Negative mouse event clientX/Y after zooming and scrolling
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 06:23 PDT by Kimmo Kotajärvi
Modified: 2022-08-18 13:15 PDT (History)
4 users (show)

See Also:


Attachments
Test page for clientX/Y after zooming (1.65 KB, text/html)
2009-09-22 06:23 PDT, Kimmo Kotajärvi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kotajärvi 2009-09-22 06:23:10 PDT
Created attachment 39920 [details]
Test page for clientX/Y after zooming

Attached a test page.

When the page is zoomed in enough and then scrolled down so that the rectangle is visible, clicking on the top left corner of the rectangle results in negative clientY values. Amount of zooming and scrolling required depends on the window size, of course. This is because clientX/Y values are corrected for the zoom factor, but is it a good behavior?

For comparison, Mozilla does not attempt to correct the clientX/Y values for zoom.
Comment 1 Ahmad Saleem 2022-06-02 05:20:55 PDT
I am unable to reproduce this in Safari 15.5 on macOS 12.4 using attached test case. I tried to do pixel hunting to click on top left most but the coordinates were "20". It is also the case with Firefox Nightly 103. Thanks!

Can someone re-test it? or assume that it was fixed down the line and mark it as "RESOLVED CONFIGURATION CHANGED". Thanks!