Bug 24813 - Continuous scroll devices shouldn't use an SPI on Mac
Summary: Continuous scroll devices shouldn't use an SPI on Mac
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-25 13:22 PDT by Avi Drissman
Modified: 2009-03-25 13:22 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Avi Drissman 2009-03-25 13:22:54 PDT
Currently, to support a continuous scroll device, WheelEventMac uses an SPI (wkGetWheelEventDeltas) (see http://trac.webkit.org/browser/trunk/WebCore/platform/mac/WheelEventMac.mm). This isn't necessary anymore in Leopard.

In Chromium, we're using CGEvents to get the data we need. See http://src.chromium.org/viewvc/chrome/trunk/src/webkit/glue/webinputevent_mac.mm .

WebKit should switch for two reasons:

- The use of SPIs is bad and should be reduced
- The measurement of scrolling units should agree across WebKit browsers. For example, the DOM scroll event should have non-accelerated ticks. We have that in Chromium. Does WebKit? It's hard to say as the SPI isn't documented.