You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Avoid clearing macro 'up' events, leaving buttons stuck on
PR #623 introduced a bug where macros that were implemented on the
target device would have their 'up' events cleared by mistake if the
event arrived quickly. This would happen because the queed 'down' event
would fire after the up events were unqueued if the up event arrived
sooner than the down event fired. That would trigger the debounce and no
later up event would fire, leaving the button stuck 'down'.
Avoid the race by triggering the second event to land 1 frame after the
first event. While at it, since the delayed ordering is no longer
necessary, treat up and down events the same for enqueueing.
0 commit comments