Bug 10601 - PlatformMouseEvent should use doubles for x/y
Summary: PlatformMouseEvent should use doubles for x/y
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P4 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 10599
  Show dependency treegraph
 
Reported: 2006-08-28 00:51 PDT by Eric Seidel (no email)
Modified: 2022-07-13 18:05 PDT (History)
7 users (show)

See Also:


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 Details
Fixed test case (1.70 KB, image/svg+xml)
2006-08-28 01:55 PDT, Eric Seidel (no email)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 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.
Comment 1 Eric Seidel (no email) 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.
Comment 2 Eric Seidel (no email) 2006-08-28 01:55:16 PDT
Created attachment 10268 [details]
Fixed test case
Comment 3 Ahmad Saleem 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!