Fix unintended SpinBox mouse capture
This commit is contained in:
parent
1f5669d8d4
commit
ae2cf8eb38
2 changed files with 4 additions and 5 deletions
|
|
@ -52,11 +52,11 @@ class SpinBox : public Range {
|
|||
void _line_edit_input(const Ref<InputEvent> &p_event);
|
||||
|
||||
struct Drag {
|
||||
float base_val;
|
||||
bool allowed;
|
||||
bool enabled;
|
||||
float base_val = 0;
|
||||
bool allowed = false;
|
||||
bool enabled = false;
|
||||
Vector2 capture_pos;
|
||||
float diff_y;
|
||||
float diff_y = 0;
|
||||
} drag;
|
||||
|
||||
void _line_edit_focus_exit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue