Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-cgt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mousover temporarily brings card to front
[peach-cgt.git]
/
client.coffee
diff --git
a/client.coffee
b/client.coffee
index
a773c5d
..
255d455
100644
(file)
--- a/
client.coffee
+++ b/
client.coffee
@@
-61,9
+61,11
@@
instantiate_card = (card) ->
if card.flipped
view.addClass 'flipped'
$table.append view
if card.flipped
view.addClass 'flipped'
$table.append view
- view.draggable stack: '.card'
+ view.draggable containment: '#table'
+ view.bind 'dragstart', (event, ui) ->
+ view.css 'z-index': card.z = next_card_z()
view.bind 'dragstop', (event, ui) ->
view.bind 'dragstop', (event, ui) ->
- top_card_z = parseInt view.css 'z-index'
+ #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
p = view.position()
state.move state.agent, card.number, transform_x(p.left), transform_y(p.top)
card.view = view