diff --git a/frontend/static/js/views/GameOfflineView.js b/frontend/static/js/views/GameOfflineView.js index 1ffc414..b07bae5 100644 --- a/frontend/static/js/views/GameOfflineView.js +++ b/frontend/static/js/views/GameOfflineView.js @@ -180,7 +180,7 @@ class Game { if ((this.keys.includes('s') || this.keys.includes('down1')) && this.players[0].paddle.y + this.def.PADDLEHEIGHT < this.def.CANVASHEIGHT - this.def.PADDLEMARGIN) this.players[0].paddle.y += this.def.PADDLESPEED; - if ((this.keys.includes('2') || this.keys.includes('up1')) && + if ((this.keys.includes('w') || this.keys.includes('up1')) && this.players[0].paddle.y > 0 + this.def.PADDLEMARGIN) this.players[0].paddle.y -= this.def.PADDLESPEED;