Skip to content

Bug: Click event firing even when button was held #3

@louisiukas

Description

@louisiukas

A button click event should only be fired when the button was not held.

In Button.cpp

if (cb_onClick) {
  cb_onClick(*this);
} //fire the onClick event AFTER the onRelease

should be

if (!triggeredHoldEvent && cb_onClick) {
  cb_onClick(*this);
} //fire the onClick event AFTER the onRelease

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions