diff options
| author | crupest <crupest@outlook.com> | 2018-11-06 16:32:38 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2018-11-06 16:32:38 +0800 | 
| commit | 1d551a7666ee61074fd36fed4f919c9583477fef (patch) | |
| tree | 0b445619b034a22f7d30642b0ba84e4d82dfa4da /src/ui/events/ui_event.cpp | |
| parent | bfdc5da41b9ab8b3f150a619c7893270dc8ccc7f (diff) | |
| download | cru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.gz cru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.bz2 cru-1d551a7666ee61074fd36fed4f919c9583477fef.zip  | |
Dev cursor for textbox.
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();              }          }  | 
