aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/ScrollBar.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-12-13 20:58:42 +0800
committercrupest <crupest@outlook.com>2021-12-13 20:58:42 +0800
commit21fccf43ec049569f690674840ca1a10420a40da (patch)
tree33341a51f41bc9d783221ad363e33ffeb177886b /src/ui/render/ScrollBar.cpp
parentc850d817cc0d8c2c80728f373f89dce91650023a (diff)
downloadcru-21fccf43ec049569f690674840ca1a10420a40da.tar.gz
cru-21fccf43ec049569f690674840ca1a10420a40da.tar.bz2
cru-21fccf43ec049569f690674840ca1a10420a40da.zip
...
Diffstat (limited to 'src/ui/render/ScrollBar.cpp')
-rw-r--r--src/ui/render/ScrollBar.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/render/ScrollBar.cpp b/src/ui/render/ScrollBar.cpp
index aeecd9e2..8e16862f 100644
--- a/src/ui/render/ScrollBar.cpp
+++ b/src/ui/render/ScrollBar.cpp
@@ -12,7 +12,7 @@
#include "cru/ui/Base.hpp"
#include "cru/ui/ThemeManager.hpp"
#include "cru/ui/UiManager.hpp"
-#include "cru/ui/events/UiEvent.hpp"
+#include "cru/ui/events/UiEvents.hpp"
#include "cru/ui/helper/ClickDetector.hpp"
#include "cru/ui/host/WindowHost.hpp"
#include "cru/ui/render/ScrollRenderObject.hpp"
@@ -124,7 +124,7 @@ void ScrollBar::InstallHandlers(controls::Control* control) {
if (control != nullptr) {
event_guard_ +=
control->MouseDownEvent()->Tunnel()->PrependShortCircuitHandler(
- [control, this](event::MouseButtonEventArgs& event) {
+ [control, this](events::MouseButtonEventArgs& event) {
if (event.GetButton() == mouse_buttons::left && IsEnabled() &&
IsExpanded()) {
auto hit_test_result =
@@ -178,7 +178,7 @@ void ScrollBar::InstallHandlers(controls::Control* control) {
event_guard_ +=
control->MouseUpEvent()->Tunnel()->PrependShortCircuitHandler(
- [control, this](event::MouseButtonEventArgs& event) {
+ [control, this](events::MouseButtonEventArgs& event) {
if (mouse_press_ != std::nullopt) {
mouse_press_ = std::nullopt;
render_object_->InvalidatePaint();
@@ -203,7 +203,7 @@ void ScrollBar::InstallHandlers(controls::Control* control) {
event_guard_ +=
control->MouseMoveEvent()->Tunnel()->PrependShortCircuitHandler(
- [this](event::MouseEventArgs& event) {
+ [this](events::MouseEventArgs& event) {
if (move_thumb_start_) {
auto new_scroll_position = CalculateNewScrollPosition(
move_thumb_thumb_original_rect_,
@@ -249,7 +249,7 @@ void ScrollBar::InstallHandlers(controls::Control* control) {
event_guard_ +=
control->MouseLeaveEvent()->Tunnel()->PrependShortCircuitHandler(
- [this](event::MouseEventArgs&) {
+ [this](events::MouseEventArgs&) {
if (IsExpanded() && !move_thumb_start_) {
if (mouse_hover_ != std::nullopt) {
mouse_hover_ = std::nullopt;