Skip to content

panToMove, pinchToZoom, maxZoom and MinZoom ignored #65

@Fsarmento

Description

@Fsarmento

I just followed the example on index.md and everything works great, except that if I change the values of maxZoom and minZoom, or set panToMove to false or pinchToZoom to false, nothing changes. Ie, I can still pinch and pan with panToMove={false} pinchToZoom={false} and zoom up A LOT (would say 100x) even if I set maxZoom to 1, 2 or 3.

    <ImageCrop
      ref={props.cropperRef}
      image={props.path}
      cropHeight={screenSize.height}
      cropWidth={screenSize.width}
      zoom={100}
      maxZoom={100}
      minZoom={20}
      panToMove={false}
      pinchToZoom={false}
    />

Looking at the code (ImageCrop.js), I see no reference to these props being used: panToMove, pinchToZoom, maxZoom and minZoom (panToMove and pinchToZoom are not even defined on ImageCrop.propTypes).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions