Merge pull request #6726 from MaxWhere/dummy-view-fix

Omits setMouseDownCanMoveWindow call for OffScreenView
This commit is contained in:
Cheng Zhao 2016-08-04 22:07:30 +09:00 committed by GitHub
commit cdfbeb1a0a

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