| 634 | } |
| 635 | |
| 636 | void Widget::OnWindowMouseWheel(const Point& pos, EInputKey key) |
| 637 | { |
| 638 | if (CaptureWidget) |
| 639 | { |
| 640 | CaptureWidget->OnMouseWheel(CaptureWidget->MapFrom(this, pos), key); |
| 641 | } |
| 642 | else |
| 643 | { |
| 644 | Widget* widget = ChildAt(pos); |
| 645 | if (!widget) |
| 646 | widget = this; |
| 647 | while (widget) |
| 648 | { |
| 649 | bool stopPropagation = widget->OnMouseWheel(widget->MapFrom(this, pos), key); |
| 650 | if (stopPropagation || widget == this) |
| 651 | break; |
| 652 | widget = widget->Parent(); |
| 653 | } |
| 654 | } |
| 655 | } |
| 656 | |
| 657 | void Widget::OnWindowRawMouseMove(int dx, int dy) |
| 658 | { |
no test coverage detected