Merge pull request #20081 from moiman100/fix-double-click-hold

Fixes is_pressed when holding double click.
This commit is contained in:
Rémi Verschelde 2018-12-14 23:18:52 +01:00 committed by GitHub
commit a03b72956d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,7 @@ void InputDefault::_parse_input_event_impl(const Ref<InputEvent> &p_event, bool
Ref<InputEventMouseButton> mb = p_event;
if (mb.is_valid() && !mb->is_doubleclick()) {
if (mb.is_valid()) {
if (mb->is_pressed()) {
mouse_button_mask |= (1 << (mb->get_button_index() - 1));