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:
Ting-Yu Lin 2014-08-07 01:26:00 -04:00
Родитель ce8794da11
Коммит db39eafdda
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -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: