diff options
Diffstat (limited to 'src/ui/events/ui_event.cpp')
-rw-r--r-- | src/ui/events/ui_event.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/events/ui_event.cpp b/src/ui/events/ui_event.cpp index 34339ff4..5e9ca452 100644 --- a/src/ui/events/ui_event.cpp +++ b/src/ui/events/ui_event.cpp @@ -11,7 +11,7 @@ namespace cru Point MouseEventArgs::GetPoint(Control* control, const RectRange range) const { if (point_.has_value()) - return control->TransformPoint(control->AbsoluteToLocal(point_.value()), RectRange::Margin, range); + return control->TransformPoint(control->WindowToControl(point_.value()), RectRange::Margin, range); return Point(); } } |