GithubHelp home page GithubHelp logo

Comments (5)

ruslanskorb avatar ruslanskorb commented on June 10, 2024 2

If I understood you correctly, you are looking for a way to configure the bounces and bouncesZoom properties of RSKImageScrollView. By setting them to NO, it is possible to achieve the effect you want.

At the moment RSKImageCropper has no such functionality. But it is possible to add new properties bounces andbouncesZoom to RSKImageCropViewController, similar to the properties alwaysBounceHorizontal and alwaysBounceVertical.

viewController.avoidEmptySpaceAroundImage = YES;
viewController.bounces = NO;
viewController.bouncesZoom = NO;

If you get the chance to do this and open the PR, I'll be happy to add these changes to RSKImageCropper.

from rskimagecropper.

matthewjsloane avatar matthewjsloane commented on June 10, 2024 1

Hi thanks for the quick response. I noticed that property but it seems like it only prevents the mask from exceeding the image boundary after the user stops dragging the mask. If the user taps the submit button while the mask is still being dragged, it's possible for there to be empty space still as far as I can tell -- let me know if that's not the case.

from rskimagecropper.

ruslanskorb avatar ruslanskorb commented on June 10, 2024

Hi @matthewjsloane,

Thank you for the question!

You probably need the avoidEmptySpaceAroundImage property of RSKImageCropViewController. It determines whether the image will always fill the mask space. Default value is NO.

from rskimagecropper.

sugitatestblue avatar sugitatestblue commented on June 10, 2024

not yet?

from rskimagecropper.

sugitatestblue avatar sugitatestblue commented on June 10, 2024

I did like this.
#242

from rskimagecropper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.