mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +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) {
|
||||
oneCardView = true;
|
||||
totalZoomAmount = 0;
|
||||
return true;
|
||||
}
|
||||
if (totalZoomAmount <= -REQ_AMOUNT) {
|
||||
else if (totalZoomAmount <= -REQ_AMOUNT) {
|
||||
oneCardView = false;
|
||||
totalZoomAmount = 0;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user