Skip to content

Commit

Permalink
allow user to set x pos
Browse files Browse the repository at this point in the history
  • Loading branch information
Carolyn Moneymaker committed Sep 17, 2024
1 parent 0edd515 commit 2bca0f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class Keyboard extends Base {
if (this.centerKeyboard) {
this.x = (this.style.screenW - this.w) / 2 - this.style.marginX;
} else {
this.x = 0;
this.x == null && (this.x = 0); // if x is undefined or null set to 0, otherwise do not overwrite x pos
}
!this._keyboardsCreated && this._createKeyboardsFromFormats();
}
Expand Down

0 comments on commit 2bca0f3

Please sign in to comment.