Bug 888300 - Respect dom.w3c_touch_events.enabled property on win32 widget. r=jimm

This commit is contained in:
Felipe Gomes 2013-06-28 17:42:25 -04:00
parent 222b23acff
commit 2d5cbdb230

View File

@ -1246,9 +1246,11 @@ void nsWindow::SetThemeRegion()
**************************************************************/
NS_METHOD nsWindow::RegisterTouchWindow() {
mTouchWindow = true;
mGesture.RegisterTouchWindow(mWnd);
::EnumChildWindows(mWnd, nsWindow::RegisterTouchForDescendants, 0);
if (Preferences::GetInt("dom.w3c_touch_events.enabled", 0)) {
mTouchWindow = true;
mGesture.RegisterTouchWindow(mWnd);
::EnumChildWindows(mWnd, nsWindow::RegisterTouchForDescendants, 0);
}
return NS_OK;
}