cancel move by dragging out of the board

This commit is contained in:
Thibault Duplessis 2014-04-13 17:39:45 +02:00
parent 6b137d5418
commit e7f6e0a273
3 changed files with 3 additions and 2 deletions

View file

@ -1330,7 +1330,6 @@ var storage = {
self.$board.find("div.lichess_piece." + self.options.player.color).each(function() {
var $this = $(this);
$this.draggable({
containment: self.$board,
helper: function() {
return $('<div>').attr('class', $this.attr('class')).appendTo(self.$board);
},

View file

@ -136,6 +136,9 @@ div.lichess_piece {
height: 64px;
background-size: cover;
}
div.lichess_piece.ui-draggable-dragging {
z-index: 999;
}
div.my_turn div.lichess_piece.ui-draggable {
cursor: move;
}

View file

@ -1123,7 +1123,6 @@ a.button:hover,
background: -o-linear-gradient(top, rgba(253, 253, 253, 1) 0%, rgba(248, 248, 248, 1) 100%);
background: -ms-linear-gradient(top, rgba(253, 253, 253, 1) 0%, rgba(248, 248, 248, 1) 100%);
background: linear-gradient(to bottom, rgba(253, 253, 253, 1) 0%, rgba(248, 248, 248, 1) 100%);
box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.button:active,
a.button:active {