mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Make zooming in ItemManager image view easier
This commit is contained in:
@@ -566,7 +566,7 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
|
|||||||
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