Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No button release triggered after drag using "gui_input" signal #27149

Open
xDGameStudios opened this issue Mar 17, 2019 · 6 comments
Open

No button release triggered after drag using "gui_input" signal #27149

xDGameStudios opened this issue Mar 17, 2019 · 6 comments

Comments

@xDGameStudios
Copy link
Contributor

xDGameStudios commented Mar 17, 2019

Godot version:
godot 3.1 master

OS/device including version:
N/A

Issue description:
When connecting to a control "gui_input" signal, to detect click+drag+release, the left mouse button released (event) at the end of the drag is not triggered.

if I print event as_text()

if p_event is InputEventMouseButton:
	print(p_event.as_text())

if I click and release I get:

InputEventMouseButton : button_index=BUTTON_LEFT, pressed=true, position=(110, 37), button_mask=1, doubleclick=false
InputEventMouseButton : button_index=BUTTON_LEFT, pressed=false, position=(110, 37), button_mask=0, doubleclick=false

if I click drag and release I get:

InputEventMouseButton : button_index=BUTTON_LEFT, pressed=true, position=(54, 24), button_mask=1, doubleclick=false

as you can see there is no release event being trigger.

@jabcross
Copy link
Contributor

Can you provide a MRP? I cant replicate it.

@akien-mga
Copy link
Member

OS/device including version:
N/A

OS is relevant information for input bugs, so please provide the required info.

Can you provide a MRP? I cant replicate it.

Bump.

@Anutrix
Copy link
Contributor

Anutrix commented Jul 11, 2019

I couldn't reproduce the issue on Windows 10 1903.

@rseonp
Copy link

rseonp commented May 27, 2020

I'm running 3.2.1.stable.official on my One Plus HD1900.

With a single Control node and a _gui_input(), it seems like any ScreenTouch events beyond index = 0 do not register releases. ScreenTouch presses and ScreenDrags are registering fine though.

@Anutrix
Copy link
Contributor

Anutrix commented May 27, 2020

@rseonp Your issue seems to be different. Please create a new issue report.

@nathanfranke
Copy link
Contributor

Can reproduce in v3.4.rc.custom_build [11d1b03]

MRP:
Test9.zip

Dragging in-between the elements seems to always work, dragging on the elements only works sometimes.

PRESS HERE
RELEASE HERE
PRESS HERE
PRESS HERE
PRESS HERE
RELEASE HERE
PRESS HERE
RELEASE HERE
PRESS HERE
RELEASE HERE
PRESS HERE
RELEASE HERE
PRESS HERE
PRESS HERE
PRESS HERE
PRESS HERE
RELEASE HERE
PRESS HERE
RELEASE HERE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants