angular-image-cropper icon indicating copy to clipboard operation
angular-image-cropper copied to clipboard

use range slider to zoomIn zoomOut

Open programming-kid opened this issue 9 years ago • 3 comments

hi i have implemented a range slider to zoom in & zoom out but i am not table to perfectly zoom-in & zoom-out using slider here is what am i done so far

      this.elements.controls.zoomEr.addEventListener('change', function(e,v) {

        var newValue = e.target.value;

        if (newValue > oldValue) {
            self.applyZoom(1 + parseFloat(newValue));
        } else {
            self.applyZoom(1 - parseFloat(newValue));
        }
        oldValue = newValue;
      });

can you pls help me to get it working perfectly

Regards

programming-kid avatar Feb 29 '16 15:02 programming-kid

Hi @programming-kid, The problem was in the api.zoom as in #25. A bugfix as been release in the new version. You can try it.

bcabanes avatar Mar 01 '16 14:03 bcabanes

@bcabanes can we have a function that will set the zoom? Instead of increment and decrement the zoom.

jexneedls avatar Apr 22 '16 18:04 jexneedls

@programming-kid do you have a demo for the slider? I also want to use it.

rickerd avatar Jun 28 '16 12:06 rickerd