angular-image-cropper
angular-image-cropper copied to clipboard
use range slider to zoomIn zoomOut
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
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 can we have a function that will set the zoom? Instead of increment and decrement the zoom.
@programming-kid do you have a demo for the slider? I also want to use it.