omits setMouseDownCanMoveWindow call for OffScreenView

This commit is contained in:
gellert 2016-08-04 12:00:35 +02:00
parent 7624958cf2
commit 0bb5dabf99

View file

@ -1128,7 +1128,9 @@ void NativeWindowMac::UpdateDraggableRegionViews(
NSInteger webViewWidth = NSWidth([webView bounds]);
NSInteger webViewHeight = NSHeight([webView bounds]);
[webView setMouseDownCanMoveWindow:YES];
if ([webView respondsToSelector:@selector(setMouseDownCanMoveWindow:)]) {
[webView setMouseDownCanMoveWindow:YES];
}
// Remove all ControlRegionViews that are added last time.
// Note that [webView subviews] returns the view's mutable internal array and