| 613 | } |
| 614 | |
| 615 | void Widget::OnWindowMouseUp(const Point& pos, EInputKey key) |
| 616 | { |
| 617 | if (CaptureWidget) |
| 618 | { |
| 619 | CaptureWidget->OnMouseUp(CaptureWidget->MapFrom(this, pos), key); |
| 620 | } |
| 621 | else |
| 622 | { |
| 623 | Widget* widget = ChildAt(pos); |
| 624 | if (!widget) |
| 625 | widget = this; |
| 626 | while (widget) |
| 627 | { |
| 628 | bool stopPropagation = widget->OnMouseUp(widget->MapFrom(this, pos), key); |
| 629 | if (stopPropagation || widget == this) |
| 630 | break; |
| 631 | widget = widget->Parent(); |
| 632 | } |
| 633 | } |
| 634 | } |
| 635 | |
| 636 | void Widget::OnWindowMouseWheel(const Point& pos, EInputKey key) |
| 637 | { |
no test coverage detected