Skip to content

Commit ea2365a

Browse files
committed
The SmoothedKeyControl minimum zoom a Camera can go to is now 0.001. Previously it was 0.1. This is to make it match the minimum zoom a Base Camera can go to. Fix phaserjs#4649
1 parent 6752dce commit ea2365a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
* The Animation component will no longer start an animation on a Sprite if the animation doesn't exist. Previously it would throw an error saying "Unable to read the property getFirstTick of null".
7474
* `InputManager.onPointerLockChange` is a new method that handles pointer lock change events and dispatches the lock event.
7575
* `CanvasTexture` has been added to the `Textures` namespace so it can be created without needing to import it. The correct way to create a `CanvasTexture` is via the Texture Manager, but you can now do it directly if required. Fix #4651 (thanks @Jugacu)
76+
* The `SmoothedKeyControl` minimum zoom a Camera can go to is now 0.001. Previously it was 0.1. This is to make it match the minimum zoom a Base Camera can go to. Fix #4649 (thanks @giviz)
7677

7778
### Bug Fixes
7879

src/cameras/controls/SmoothedKeyControl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,9 @@ var SmoothedKeyControl = new Class({
446446
{
447447
cam.zoom += this._zoom;
448448

449-
if (cam.zoom < 0.1)
449+
if (cam.zoom < 0.001)
450450
{
451-
cam.zoom = 0.1;
451+
cam.zoom = 0.001;
452452
}
453453
}
454454
},

0 commit comments

Comments
 (0)