mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 22:38:43 +00:00
Modified limits to zooming
#story[1121]
This commit is contained in:
@@ -104,7 +104,7 @@ public class GameView extends Pane {
|
|||||||
|
|
||||||
public void zoomIn() {
|
public void zoomIn() {
|
||||||
scaleFactor = 0.10;
|
scaleFactor = 0.10;
|
||||||
if (this.getScaleX() < 3) {
|
if (this.getScaleX() < 2.5) {
|
||||||
this.setScaleX(this.getScaleX() + scaleFactor);
|
this.setScaleX(this.getScaleX() + scaleFactor);
|
||||||
this.setScaleY(this.getScaleY() + scaleFactor);
|
this.setScaleY(this.getScaleY() + scaleFactor);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user