зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1046732 - Part 1: Fix incorrect event message used in TouchCaret.cpp. r=ehsan
NS_WHEEL_EVENT_START isn't a specific event message for compairing in the switch case. Since we would like to hide touch caret whenever receving wheel events, all the wheel event types are added.
This commit is contained in:
Родитель
ce8794da11
Коммит
db39eafdda
|
@ -586,9 +586,11 @@ TouchCaret::HandleEvent(WidgetEvent* aEvent)
|
|||
case NS_KEY_UP:
|
||||
case NS_KEY_DOWN:
|
||||
case NS_KEY_PRESS:
|
||||
case NS_WHEEL_EVENT_START:
|
||||
case NS_WHEEL_WHEEL:
|
||||
case NS_WHEEL_START:
|
||||
case NS_WHEEL_STOP:
|
||||
// Disable touch caret while key/wheel event is received.
|
||||
TOUCHCARET_LOG("Receive key/wheel event");
|
||||
TOUCHCARET_LOG("Receive key/wheel event %d", aEvent->message);
|
||||
SetVisibility(false);
|
||||
break;
|
||||
default:
|
||||
|
|
Загрузка…
Ссылка в новой задаче