Commit 30234598 authored by xylitolhub's avatar xylitolhub

Fix bug wrong card position of side when dragging

Signed-off-by: default avatarxylitolhub <xylitolhub@github.com>
parent 78dafa56
...@@ -304,7 +304,7 @@ class DeckDrager { ...@@ -304,7 +304,7 @@ class DeckDrager {
int right = to - DeckItem.SideStart; int right = to - DeckItem.SideStart;
int sidecount = deckAdapater.getSideCount(); int sidecount = deckAdapater.getSideCount();
int maincount = deckAdapater.getMainCount(); int maincount = deckAdapater.getMainCount();
if (right > sidecount) { if (right >= sidecount) {
right = sidecount - 1; right = sidecount - 1;
} }
//交换 //交换
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment