Browse Source

Consume onDragHover in OpaqueWidget.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
d8d5021304
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      include/widget/OpaqueWidget.hpp

+ 3
- 0
include/widget/OpaqueWidget.hpp View File

@@ -42,6 +42,9 @@ struct OpaqueWidget : Widget {
void onDragHover(const event::DragHover &e) override {
Widget::onDragHover(e);
e.stopPropagating();
// Consume if not consumed by child
if (!e.isConsumed())
e.consume(this);
}
void onPathDrop(const event::PathDrop &e) override {
Widget::onPathDrop(e);


Loading…
Cancel
Save