mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-04-30 00:00:04 +08:00
Build update
This commit is contained in:
@@ -1866,7 +1866,7 @@ class SimpleKeyboard {
|
||||
* This fires handler before onKeyReleased, therefore when that option is set we will fire the handler
|
||||
* in onmousedown instead
|
||||
*/
|
||||
if(typeof this.options.onKeyReleased !== "function"){
|
||||
if (typeof this.options.onKeyReleased !== "function") {
|
||||
this.handleButtonClicked(button, e);
|
||||
}
|
||||
};
|
||||
@@ -1874,7 +1874,10 @@ class SimpleKeyboard {
|
||||
/**
|
||||
* Fire button handler for onKeyReleased use-case
|
||||
*/
|
||||
if(typeof this.options.onKeyReleased === "function" && !this.isMouseHold){
|
||||
if (
|
||||
typeof this.options.onKeyReleased === "function" &&
|
||||
!this.isMouseHold
|
||||
) {
|
||||
this.handleButtonClicked(button, e);
|
||||
}
|
||||
this.handleButtonMouseDown(button, e);
|
||||
|
||||
Reference in New Issue
Block a user