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