Merge pull request #97122 from adamscott/fix-trackpad-code-completion-scrolling
Fix trackpad code completion scrolling
This commit is contained in:
commit
c220e5bffd
1 changed files with 4 additions and 2 deletions
|
@ -277,15 +277,17 @@ void CodeEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
|
|||
code_completion_force_item_center = -1;
|
||||
queue_redraw();
|
||||
}
|
||||
code_completion_pan_offset += 1.0f;
|
||||
code_completion_pan_offset = 0;
|
||||
} else if (code_completion_pan_offset >= +1.0) {
|
||||
if (code_completion_current_selected < code_completion_options.size() - 1) {
|
||||
code_completion_current_selected++;
|
||||
code_completion_force_item_center = -1;
|
||||
queue_redraw();
|
||||
}
|
||||
code_completion_pan_offset -= 1.0f;
|
||||
code_completion_pan_offset = 0;
|
||||
}
|
||||
accept_event();
|
||||
return;
|
||||
}
|
||||
|
||||
Ref<InputEventMouseButton> mb = p_gui_input;
|
||||
|
|
Loading…
Reference in a new issue