Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

use range slider to zoomIn zoomOut #24

Open
programming-kid opened this issue Feb 29, 2016 · 3 comments
Open

use range slider to zoomIn zoomOut #24

programming-kid opened this issue Feb 29, 2016 · 3 comments
Assignees
Labels

Comments

@programming-kid
Copy link

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

@bcabanes bcabanes self-assigned this Mar 1, 2016
@bcabanes bcabanes added the bug label Mar 1, 2016
@bcabanes
Copy link
Owner

bcabanes commented Mar 1, 2016

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.

@jexneedls
Copy link

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

@rickerd
Copy link
Contributor

rickerd commented Jun 28, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants