Skip to content

Edge Case: hold 4 2 6, release 4 #1

@pauldps

Description

@pauldps

Steps to reproduce

  • Hold 4
  • Hold 2
  • Hold 6
  • Release 4

Expected Events

  • 4
  • 1 (4 + 2)
  • 3 (2 + 6)
  • No event

What is happening instead

The last event is being sent over twice, as if repeating the last input, when it's not the case.

Suggested Fix

The real directional event is always based on the last two inputs being held.

When a direction is released, do not dispatch any event if its index is not part of the two last items.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions