mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Prevent zoom leading to fling unintentionally
This commit is contained in:
@@ -158,14 +158,12 @@ public class CardZoom extends FOverlay {
|
|||||||
if (totalZoomAmount >= REQ_AMOUNT) {
|
if (totalZoomAmount >= REQ_AMOUNT) {
|
||||||
oneCardView = true;
|
oneCardView = true;
|
||||||
totalZoomAmount = 0;
|
totalZoomAmount = 0;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
if (totalZoomAmount <= -REQ_AMOUNT) {
|
else if (totalZoomAmount <= -REQ_AMOUNT) {
|
||||||
oneCardView = false;
|
oneCardView = false;
|
||||||
totalZoomAmount = 0;
|
totalZoomAmount = 0;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user