Merge pull request #17081 from endragor/no-press-when-scroll
Make Button not emit press when container is scrolled
This commit is contained in:
@@ -252,7 +252,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;
|
||||
|
||||
Reference in New Issue
Block a user