pro-grid / pro-grid-client

Angular front-end for progrid.io, a live multiplayer pixel art game
http://www.progrid.io
4 stars 3 forks source link

Right-clicking on white shouldn't set color #13

Open rywal opened 10 years ago

rywal commented 10 years ago

Right clicking on the white background currently sets the user's color to white, which may cause confusion for users who attempt to draw on anything that is not colored(i.e. the background). Logic should be added to prevent changing color if the color is white

DarrenCattle commented 10 years ago

gridClicked(square) var user.color = (el.backgroundColor !== ' ') ? (server.color) : (user.color);

wrong variable names but you get the point real simple fix.

austinpray commented 10 years ago

Y'all are trash ima fix this when I'm not in Vegas