Bug 29640

Summary: Negative mouse event clientX/Y after zooming and scrolling
Product: WebKit Reporter: Kimmo Kotajärvi <kimmo.kotajarvi>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Test page for clientX/Y after zooming none

Kimmo Kotajärvi
Reported 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.
Attachments
Test page for clientX/Y after zooming (1.65 KB, text/html)
2009-09-22 06:23 PDT, Kimmo Kotajärvi
no flags
Ahmad Saleem
Comment 1 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!
Note You need to log in before you can comment on or make changes to this bug.