Make zooming in ItemManager image view easier

This commit is contained in:
drdev
2014-10-03 19:26:05 +00:00
parent 4b9aa2515d
commit be5086e7f4

View File

@@ -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;