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

When a user double-clicks, UE doesn't receive the second release #10

Open
DenisTensorWorks opened this issue Feb 29, 2024 · 0 comments
Open
Labels
bug Something isn't working enhancement New feature or request never-stale

Comments

@DenisTensorWorks
Copy link
Collaborator

DenisTensorWorks commented Feb 29, 2024

UE Version:
E.g. UE 5.2.1

Problem component
Frontend

Summary

In 5.2.1, when a user double-clicks, the second release is never received by UE. A user reports having to work around this by sending a release input action manually when their frontend detects a double click.

Description from the user

Input in the Pixel Streaming Demo example project works just fine. It uses the same input logic we use in our project to toggle camera pan (hold LMB to pan camera).

In our project, we also handle doubleclick natively (LMB bound to IE_DoubleClick) to select where our character is supposed to move. When we use the vanilla 5.2 pixel streaming infra, this is what happens:

  1. We double click to move our character.
  2. Our character moves, but camera panning is enabled afterwards without any buttons being held

Our team has discovered that this issue goes away after commenting out the body of this function.

What we ended up doing as a workaround is our frontend sends a mouse up event a short time after the double click event. This fixes the issue of our camera getting stuck at panning after double click.

We can probably use the top down project to repro this, it has click to move controls out of the box I believe.

Expected behavior
UE should be able to correctly handle double-clicks and register release events

Environment:

  • Frontend: 5.2
  • OS: (TBC)
  • Browser: Chrome and Firefox

Moved from EpicGames/PixelStreamingInfrastructure#359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request never-stale
Projects
None yet
Development

No branches or pull requests

2 participants