mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
views: Fix crash when clicking a draggable region (fixes issue #3311)
This commit is contained in:
@@ -16,7 +16,13 @@
|
||||
// CefViewView template.
|
||||
class WebViewEx : public views::WebView {
|
||||
public:
|
||||
WebViewEx() : views::WebView(nullptr) {}
|
||||
WebViewEx() : views::WebView(nullptr) {
|
||||
// Mouse events on draggable regions will not be handled by the WebView.
|
||||
// Avoid the resulting DCHECK in NativeViewHost::OnMousePressed by
|
||||
// configuring the NativeViewHost not to process events via the view
|
||||
// hierarchy.
|
||||
holder()->SetCanProcessEventsWithinSubtree(false);
|
||||
}
|
||||
};
|
||||
|
||||
class CefBrowserViewView
|
||||
|
Reference in New Issue
Block a user