Skip to content

Improve callbacks while zooming #552

@ofekudi

Description

@ofekudi

Describe the bug
There are two main problems:

  1. The callback for onCropComplete is being called repeatedly while zooming - so they are being simultaneously called
  2. While zooming, the onZoomChange is being called a lot of times (maybe it's possible to throttle it)

To Reproduce
Steps to reproduce the behavior:

  1. Add logs in the onCropComplete and onZoomChange callbacks
  2. Zoom in

Expected behavior

  1. onCropComplete will be called only once - after you finish zooming (the same behavior as happens with onCropChange)
  2. onZoomChange will be called less frequently

Here's a sample of the logs while zooming in:
image

Thanks for your help! This package is super useful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions