Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-cgt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2931445
)
Let drags go off the edge
author
Jason Woofenden
<jason@jasonwoof.com>
Sat, 5 Nov 2011 06:05:19 +0000
(
02:05
-0400)
committer
Jason 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
patch
|
blob
|
history
diff --git
a/client.coffee
b/client.coffee
index
6da0968
..
b480d04
100644
(file)
--- 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?