X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.coffee;fp=client.coffee;h=99a70a74ce68f48f1297078ee92183b06b317bd4;hb=3be596d7cfcd16a09505b8c68cad974d7b2901ac;hp=255d45583764e72d562305db7acd438f4e43e7e2;hpb=4c75fd3542bb59bc6ece0f46f4ec7b19b16085bf;p=peach-cgt.git diff --git a/client.coffee b/client.coffee index 255d455..99a70a7 100644 --- a/client.coffee +++ b/client.coffee @@ -61,11 +61,10 @@ instantiate_card = (card) -> if card.flipped view.addClass 'flipped' $table.append view - view.draggable containment: '#table' + view.draggable containment: '#table', grid: [20, 20] view.bind 'dragstart', (event, ui) -> view.css 'z-index': card.z = next_card_z() view.bind 'dragstop', (event, ui) -> - #view.css 'z-index': card.z p = view.position() state.move state.agent, card.number, transform_x(p.left), transform_y(p.top) card.view = view