mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 01:57:29 +00:00
Buttons trigger on mouse up not mouse down
This commit is contained in:
parent
9d36382fac
commit
2540b4b7c0
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ export default class Button extends GuiObj {
|
|||
_bindToDom() {
|
||||
// TODO: Cleanup!
|
||||
this._div.addEventListener("mousedown", this._handleMouseDown.bind(this));
|
||||
this._div.addEventListener("mousedown", (e) => {
|
||||
this._div.addEventListener("click", (e) => {
|
||||
if (this._action) {
|
||||
UI_ROOT.dispatch(this._action);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue