JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Let drags go off the edge
authorJason Woofenden <jason@jasonwoof.com>
Sat, 5 Nov 2011 06:05:19 +0000 (02:05 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Sat, 5 Nov 2011 06:05:19 +0000 (02:05 -0400)
This is currently needed to be able to get cards which overflow a onto your own
piles.

client.coffee

index 6da0968..b480d04 100644 (file)
@@ -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?