Needs review
Project:
Tetris
Version:
6.x-1.4
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2009 at 03:34 UTC
Updated:
28 Feb 2009 at 07:13 UTC
I noticed that the screen will jump when you use the keyboard arrows to control piece movement. This is because the captured command is passed through-fine for using letter keys but the arrows are also used for navigation.
I fixed this by adding a 'return false' after line 1112 of the tetris.js file (end of function tetris_press_key(e, evento_actual) )
1112: tetris_show_map(map_matrix, map_matrix_previous);
return false; /* return false to prevent default event */
I've attached a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| tetris.js_.patch | 210 bytes | NotGoddess |
Comments
Comment #1
skinhat commentedThanks for the patch. I created a new release with your fix. I've always wanted to use arrow keys instead of z x m etc but didn't for the reason you mentioned.