NEW 10601
PlatformMouseEvent should use doubles for x/y
https://bugs.webkit.org/show_bug.cgi?id=10601
Summary PlatformMouseEvent should use doubles for x/y
Eric Seidel (no email)
Reported 2006-08-28 00:51:25 PDT
PlatformMouseEvent should use floating-point-precision, so that SVG hit detection can be floating point precise across scaled elements. I'll attach an example to show the current integer-only behavior.
Attachments
This example shows the current integer-only behavior limiting proper hit-testing (1.69 KB, image/svg+xml)
2006-08-28 01:47 PDT, Eric Seidel (no email)
no flags
Fixed test case (1.70 KB, image/svg+xml)
2006-08-28 01:55 PDT, Eric Seidel (no email)
no flags
Eric Seidel (no email)
Comment 1 2006-08-28 01:47:05 PDT
Created attachment 10267 [details] This example shows the current integer-only behavior limiting proper hit-testing The goal of this bug is to change the behavior so that float/double mouse coordinates are maintained all the way through the engine until the final hit-testing in the render tree. Eventually if http://bugzilla.opendarwin.org/show_bug.cgi?id=10599 is also fixed than these floating-point mouse coordinates will also be exposed to JavaScript.
Eric Seidel (no email)
Comment 2 2006-08-28 01:55:16 PDT
Created attachment 10268 [details] Fixed test case
Ahmad Saleem
Comment 3 2022-07-12 23:52:55 PDT
I am able to reproduce this bug in Safari 15.5 on macOS 12.4 using attached "Fixed Test Case". While hovering the mouse (on laptop), all other browsers show odd numbers as well like 54,73 etc. and I can increment with precise movements on touchpad to go 73,74,75 but in case of Safari, it just jumps to 74,76 etc. (It is not precise and increments in double digit). If I am testing it incorrectly, please test accordingly. Thanks!
Note You need to log in before you can comment on or make changes to this bug.