Button icon indicating copy to clipboard operation
Button copied to clipboard

Bug: Click event firing even when button was held

Open louisiukas opened this issue 11 years ago • 0 comments

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

louisiukas avatar Sep 20 '14 19:09 louisiukas