mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
fixed blurry tapped cards
This commit is contained in:
parent
6e94221112
commit
9d6ecbbfdf
3 changed files with 12 additions and 4 deletions
|
|
@ -85,6 +85,9 @@ void LibraryZone::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
|||
if ((event->screenPos() - event->buttonDownScreenPos(Qt::LeftButton)).manhattanLength() < QApplication::startDragDistance())
|
||||
return;
|
||||
|
||||
if (cards->empty())
|
||||
return;
|
||||
|
||||
CardItem *card = cards->at(0);
|
||||
CardDragItem *drag = card->createDragItem(this, 0, event->pos(), event->scenePos());
|
||||
drag->grabMouse();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue