From: Jason Woofenden Date: Sat, 5 Nov 2011 06:05:19 +0000 (-0400) Subject: Let drags go off the edge X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-cgt.git;a=commitdiff_plain;h=e5d2d2f7c8ee13e32caebf343b6d4046ca802b11 Let drags go off the edge This is currently needed to be able to get cards which overflow a onto your own piles. --- diff --git a/client.coffee b/client.coffee index 6da0968..b480d04 100644 --- a/client.coffee +++ b/client.coffee @@ -111,7 +111,7 @@ instantiate_card = (card) -> if card.flipped view.addClass 'flipped' $table.append view - view.draggable containment: '#table', grid: [20, 20] + view.draggable grid: [20, 20] view.bind 'dragstart', (event, ui) -> view.css 'z-index': card.z = next_card_z() if card.pile?