Lila: Scawy inconsistent keyboawd showtcut UwU

Created on 14 Jun 2019  路  7Comments  路  Source: ornicar/lila

Hii~~

Senpai, in both puzzles and analysis, the up awwow wesets the boawd to the vewy stawting position. The code in the wespective keyboawd.ts files is like:

kbd.bind(['up', '0'], pweventing(function() { contwol.fiwst(ctwl); ctwl.wedwaw(); }));

Howevew, in wound/swc/keyboawd.ts, it says:

ctwl.usewJump(1); ctwl.wedwaw();

As we can see, duwing wounds of chess, the up awwow sets the boawd to the position aftew the fiwst move!! O.O

This is inconsistent but luckily, all we need to do is change it to

ctwl.usewJump(0); ctwl.wedwaw();

This fixie wixies the pwoblem
xD starts twerking

Most helpful comment

Translation:

Inconsistent keyboard shortcut:

Dear Chess Friends.

In both puzzles and analysis, the up arrow resets the board to the very starting position. The code in the respective keyboard.ts file is:

kbd.bind(['up', '0'], preventing(function() { control.first(ctrl); ctrl.redraw(); }));

However, in round/src/keyboard.ts, it says:

ctrl.userJump(1); ctrl.redraw();

As we can see, during rounds of chess, the up arrow sets the board to the position after the first move.

This is inconsistent but luckily, all we need to do is change it to:

ctrl.userJump(0); ctrl.redraw();

This seems to solve the problem.

Thanks!

All 7 comments

Translation:

Inconsistent keyboard shortcut:

Dear Chess Friends.

In both puzzles and analysis, the up arrow resets the board to the very starting position. The code in the respective keyboard.ts file is:

kbd.bind(['up', '0'], preventing(function() { control.first(ctrl); ctrl.redraw(); }));

However, in round/src/keyboard.ts, it says:

ctrl.userJump(1); ctrl.redraw();

As we can see, during rounds of chess, the up arrow sets the board to the position after the first move.

This is inconsistent but luckily, all we need to do is change it to:

ctrl.userJump(0); ctrl.redraw();

This seems to solve the problem.

Thanks!

On my PC the up and down arrow keys set the first and last positions.

Lol, no it doesn't consistently in puzzles, analysis and nowmal chess XD

How long do you think it will take you to copy a line prowided to you with almost no functional diffewence?
Why do you ask for help when you don't have the chawactew to take it? UwU

@MikuChan03 I'm just saying... on my PC it works. If you can tell me what browser version to test in, maybe I can understand what you're talking about.

Go to:
https://lichess.org/a9V5wZC6/black#0
Click somewhere on the lightgray background and press frirst the down arrow, release it, then press the up arrow.

Go to:
https://lichess.org/tv/classical
Click somewhere on the lightgray background and press frirst the down arrow, release it, then press the up arrow.

One up arrow press will jump to the position after the first move, the other won't. The odd one out is the handler for the regular rounds of the chess, puzzles, the analysis board and the rest all reset to the starting position.

Thanks, now I see the https://lichess.org/tv/classical up arrow bug (browser: Vivaldi)
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ddugovic picture ddugovic  路  4Comments

travhimself picture travhimself  路  4Comments

aloisdg picture aloisdg  路  4Comments

Assios picture Assios  路  3Comments

arex1337 picture arex1337  路  4Comments