Add wxWindow::EnableTouchEvents()
Don't request touch event generation for all windows by default, this has an inherent overhead and is not needed for 99% of the application windows, so require calling EnableTouchEvents() explicitly to do it instead. Note that this requires properly initializing gesture recognizers in wxOSX now that they're not always allocated, otherwise releasing them when destroying the window would crash.
This commit is contained in:
@@ -1429,6 +1429,11 @@ void wxWindowMac::WarpPointer(int x_pos, int y_pos)
|
||||
#endif
|
||||
}
|
||||
|
||||
bool wxWindowMac::EnableTouchEvents(int eventsMask)
|
||||
{
|
||||
return GetPeer() ? GetPeer()->EnableTouchEvents(eventsMask) : false;
|
||||
}
|
||||
|
||||
int wxWindowMac::GetScrollPos(int orient) const
|
||||
{
|
||||
#if wxUSE_SCROLLBAR
|
||||
|
Reference in New Issue
Block a user