Hi

I've been using ImageViewer lately for my project, and I would like to make 
some suggestions to improve it. I don't know if this is the right place or 
I should open an issue, or even a pull request.

Anyway, my ideas are:

- Add a method to programmatically pan the image to a specific location 
when zoom is invoked. This is something very useful, because if I double 
tap an image, I expect it to zoom near the location I tapped, and not right 
in the middle. Could be something like this:

    public void setZoom(float zoom, float panPositionX, float panPositionY) 
{
        this.zoom = zoom;                
        this.panPositionX = panPositionX;
        this.panPositionY = panPositionY;
        updatePositions();
        repaint();
    }


- Animate the zoom. This would be a nice effect that I've seen in other 
apps when you double tap to zoom an image. Should be trivial to achieve.

Makes sense?

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a42166aa-0a3f-4f90-8f46-82bf2c06a3bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to