mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1180780 - Enable handling of pixel-scrolling wheel events with APZ on Windows and Linux. r=mstange
This commit is contained in:
parent
8ed518b6a8
commit
d4b11ffbea
@ -940,15 +940,9 @@ APZCTreeManager::ProcessWheelEvent(WidgetWheelEvent& aEvent,
|
||||
static bool
|
||||
WillHandleWheelEvent(WidgetWheelEvent* aEvent)
|
||||
{
|
||||
// Only support pixel units on OS X for now because it causes more test
|
||||
// failures when APZ is turned on, and we want to do that on Windows very
|
||||
// soon.
|
||||
return EventStateManager::WheelEventIsScrollAction(aEvent) &&
|
||||
(aEvent->deltaMode == nsIDOMWheelEvent::DOM_DELTA_LINE
|
||||
#ifdef XP_MACOSX
|
||||
|| aEvent->deltaMode == nsIDOMWheelEvent::DOM_DELTA_PIXEL
|
||||
#endif
|
||||
) &&
|
||||
|| aEvent->deltaMode == nsIDOMWheelEvent::DOM_DELTA_PIXEL) &&
|
||||
!EventStateManager::WheelEventNeedsDeltaMultipliers(aEvent);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user