diff options
Diffstat (limited to 'public/javascripts/game.js')
| -rw-r--r-- | public/javascripts/game.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/javascripts/game.js b/public/javascripts/game.js index 2dce5d6..2db6885 100644 --- a/public/javascripts/game.js +++ b/public/javascripts/game.js @@ -42,7 +42,7 @@ var game = { }); socket.on('mouse', function(data){ if (data.id != _id && data.id in users) { - users[data.id].cursor.el.css({ 'margin-right': -data.x, 'margin-bottom': -data.y }); + users[data.id].cursor.el.css({ 'margin-left': data.x, 'margin-top': data.y }); } }); socket.on('focus', function(data) { @@ -115,7 +115,7 @@ var UI = { if (user.id != _id && ! user.cursor) { var cursor = new Cursor( user, now ); user.cursor = cursor; - user.cursor.el.css({ 'margin-right': -user.x, 'margin-bottom': -user.y }); + user.cursor.el.css({ 'margin-left': user.x, 'margin-top': user.y }); } else if (user.id == _id && own_cursor) { user.cursor = own_cursor; |
