aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/base_button.cpp
diff options
context:
space:
mode:
authorRuslan Mustakov2018-02-27 22:37:20 +0700
committerRuslan Mustakov2018-04-09 20:34:52 +0700
commitdcf5be92a3aede861909c08d06b114669bbe75e8 (patch)
treed2ece25a54726772b644dc5d775fb327ebccafb0 /scene/gui/base_button.cpp
parent47676cfa98ffc49a8165b1453bc35a9d261e9c44 (diff)
downloadgodot-dcf5be92a3aede861909c08d06b114669bbe75e8.tar.gz
godot-dcf5be92a3aede861909c08d06b114669bbe75e8.tar.zst
godot-dcf5be92a3aede861909c08d06b114669bbe75e8.zip
Diffstat (limited to 'scene/gui/base_button.cpp')
-rw-r--r--scene/gui/base_button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp
index 5f541ea16..1c91e9988 100644
--- a/scene/gui/base_button.cpp
+++ b/scene/gui/base_button.cpp
@@ -247,7 +247,7 @@ void BaseButton::_notification(int p_what) {
status.hovering = false;
update();
}
- if (p_what == NOTIFICATION_DRAG_BEGIN) {
+ if (p_what == NOTIFICATION_DRAG_BEGIN || p_what == NOTIFICATION_SCROLL_BEGIN) {
if (status.press_attempt) {
status.press_attempt = false;