unalign
This commit is contained in:
parent
cf14f8fa8c
commit
0415c35176
1 changed files with 5 additions and 5 deletions
10
js/star.js
10
js/star.js
|
@ -222,11 +222,11 @@ function start_loop( state, elt ) {
|
|||
board_infos.cell_dimensions = {};
|
||||
board_infos.cell_dimensions.width = board_infos.dimensions.width / LEVEL_WIDTH;
|
||||
board_infos.cell_dimensions.height = board_infos.dimensions.height / LEVEL_HEIGHT;
|
||||
var movingpos = get_pos( state, state.moving );
|
||||
var notmovingpos = get_pos( state, ( state.moving != cell.BALL ) ? cell.BALL : cell.CUBE );
|
||||
var click = {};
|
||||
click.x = e.pageX - board_infos.position.left;
|
||||
click.y = e.pageY - board_infos.position.top;
|
||||
var movingpos = get_pos( state, state.moving );
|
||||
var notmovingpos = get_pos( state, ( state.moving != cell.BALL ) ? cell.BALL : cell.CUBE );
|
||||
var click = {};
|
||||
click.x = e.pageX - board_infos.position.left;
|
||||
click.y = e.pageY - board_infos.position.top;
|
||||
|
||||
if ( ( 0 <= click.x && click.x < board_infos.dimensions.width )
|
||||
&& ( 0 <= click.y && click.y < board_infos.dimensions.height ) ) {
|
||||
|
|
Loading…
Reference in a new issue