mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Make zooming in ItemManager image view easier
This commit is contained in:
@@ -565,8 +565,8 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
|
|||||||
@Override
|
@Override
|
||||||
protected boolean zoom(float x, float y, float amount) {
|
protected boolean zoom(float x, float y, float amount) {
|
||||||
totalZoomAmount += amount;
|
totalZoomAmount += amount;
|
||||||
|
|
||||||
float columnZoomAmount = Utils.AVG_FINGER_WIDTH;
|
float columnZoomAmount = 2 * Utils.AVG_FINGER_WIDTH;
|
||||||
while (totalZoomAmount >= columnZoomAmount) {
|
while (totalZoomAmount >= columnZoomAmount) {
|
||||||
setColumnCount(getColumnCount() - 1);
|
setColumnCount(getColumnCount() - 1);
|
||||||
totalZoomAmount -= columnZoomAmount;
|
totalZoomAmount -= columnZoomAmount;
|
||||||
|
|||||||
Reference in New Issue
Block a user