Skip to content

Commit

Permalink
Bug 1749172 - Fix typo (SCROLL_ASYNCHRONOUSELY -> SCROLL_ASYNCHRONOUS…
Browse files Browse the repository at this point in the history
…LY) in MouseEvents.h. r=hiro

I was looking at related code and this threw me off a bit.

Differential Revision: https://phabricator.services.mozilla.com/D135454
  • Loading branch information
emilio committed Jan 10, 2022
1 parent d916fe2 commit d1a1441
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dom/events/EventStateManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2972,7 +2972,7 @@ void EventStateManager::DoScrollText(nsIScrollableFrame* aScrollableFrame,
case WidgetWheelEvent::SCROLL_SYNCHRONOUSLY:
mode = ScrollMode::Instant;
break;
case WidgetWheelEvent::SCROLL_ASYNCHRONOUSELY:
case WidgetWheelEvent::SCROLL_ASYNCHRONOUSLY:
mode = ScrollMode::Normal;
break;
case WidgetWheelEvent::SCROLL_SMOOTHLY:
Expand Down
2 changes: 1 addition & 1 deletion widget/InputData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ WidgetWheelEvent PanGestureInput::ToWidgetEvent(nsIWidget* aWidget) const {
// PANDELTA_PAGE
// Emulate legacy widget/gtk behavior
wheelEvent.mDeltaMode = WheelEvent_Binding::DOM_DELTA_LINE;
wheelEvent.mScrollType = WidgetWheelEvent::SCROLL_ASYNCHRONOUSELY;
wheelEvent.mScrollType = WidgetWheelEvent::SCROLL_ASYNCHRONOUSLY;
wheelEvent.mDeltaX *= 3;
wheelEvent.mDeltaY *= 3;
} else {
Expand Down
2 changes: 1 addition & 1 deletion widget/MouseEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ class WidgetWheelEvent : public WidgetMouseEventBase {
enum ScrollType : uint8_t {
SCROLL_DEFAULT,
SCROLL_SYNCHRONOUSLY,
SCROLL_ASYNCHRONOUSELY,
SCROLL_ASYNCHRONOUSLY,
SCROLL_SMOOTHLY
};
ScrollType mScrollType;
Expand Down
2 changes: 1 addition & 1 deletion widget/gtk/nsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4612,7 +4612,7 @@ void nsWindow::OnScrollEvent(GdkEventScroll* aEvent) {
}

// Older GTK doesn't support stop events, so we can't support fling
wheelEvent.mScrollType = WidgetWheelEvent::SCROLL_ASYNCHRONOUSELY;
wheelEvent.mScrollType = WidgetWheelEvent::SCROLL_ASYNCHRONOUSLY;
}

// TODO - use a more appropriate scrolling unit than lines.
Expand Down

0 comments on commit d1a1441

Please sign in to comment.