mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 888300 - Respect dom.w3c_touch_events.enabled property on win32 widget. r=jimm
This commit is contained in:
parent
222b23acff
commit
2d5cbdb230
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user