cancel move by dragging out of the board
This commit is contained in:
parent
6b137d5418
commit
e7f6e0a273
|
@ -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);
|
||||
},
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue