Fix zoom step and coeficient
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
d0ba142b72
commit
bc62c6bec9
1 changed files with 2 additions and 2 deletions
|
@ -37,9 +37,9 @@ import {normalizeWheelEvent} from "../../../utils/Mouse";
|
||||||
// Max scale to keep gaps around the image
|
// Max scale to keep gaps around the image
|
||||||
const MAX_SCALE = 0.95;
|
const MAX_SCALE = 0.95;
|
||||||
// This is used for the buttons
|
// This is used for the buttons
|
||||||
const ZOOM_STEP = 10;
|
const ZOOM_STEP = 0.10;
|
||||||
// This is used for mouse wheel events
|
// This is used for mouse wheel events
|
||||||
const ZOOM_COEFFICIENT = 0.5;
|
const ZOOM_COEFFICIENT = 0.0025;
|
||||||
// If we have moved only this much we can zoom
|
// If we have moved only this much we can zoom
|
||||||
const ZOOM_DISTANCE = 10;
|
const ZOOM_DISTANCE = 10;
|
||||||
const IMAGE_WRAPPER_CLASS = "mx_ImageView_image_wrapper";
|
const IMAGE_WRAPPER_CLASS = "mx_ImageView_image_wrapper";
|
||||||
|
|
Loading…
Reference in a new issue