Skip to content

maxZoomLevel after image change ignored #11

@dominikstoetter

Description

@dominikstoetter

The zooming out of an image without 'maxZoomLevel' set lets zoom out too far. Eg. on the Example Page (White box beyond window):
bildschirmfoto 2016-08-10 um 08 42 22

In combination with zoomType: 'lens' and lensShape: 'round' the lens background gets over its border. To limit this behavior i tried to set maxZoomLevel, which solves the problem. Unfortunatelly after changing my image (because of an image gallery) The maxZoomLevel is mostly ignored.
On the first image, the maxLimitSize limits the background-size to:
640px 854px
after changing the image (same image size) the background-size gets down to:
299.766px 400px;
which has an image in image effect.

ezp-model="{thumb: vm.activeImageSmall, small: vm.activeImageLarge, large: vm.activeZoomImage}"

ezp-options="{scrollZoom: true, responsive: true, zoomType: 'lens', lensShape: 'round', lensSize: 200, easing: false, borderSize: 1, maxZoomLevel: 3, minZoomLevel: 0.5, containLensZoom: true}"

ng-src="{{vm.activeImageLarge}}"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions