[Webkit-unassigned] [Bug 20458] Support stylus pressure info in mouse events

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 20 06:28:25 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20458


oliver at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|webkit-                     |oliver at apple.com
                   |unassigned at lists.webkit.org |
             Status|NEW                         |ASSIGNED




------- Comment #1 from oliver at apple.com  2008-08-20 06:28 PDT -------
Created an attachment (id=22893)
 --> (https://bugs.webkit.org/attachment.cgi?id=22893&action=view)
Initial implementation of pressure support

This patch provides pressure information in the mouse event.  

The MouseEvent.pressure property is an double value from 0 to 1, where 0
indicates no pressure, and 1 indicates max pressure.  We use a float rather
than an integer value as different styluses have different pressure precision,
so a float range from 0 to 1 effectively normalises this.

A mouse is considered to have binary pressure levels, with pressure of 1
indicating a mouse is down, and pressure 0 indicating no button.

I haven't looked into providing tilt info, etc as I am not sure how commonly
such information is provided, ditto for rotation information which seems even
less common.

One other issue is that many styluses provide an "eraser" and it would be nice
if we had a mechanism to allow a webpage to identify when the eraser was being
used, as this would further increase the fidelity of the browser image
processing experience.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list