Hi

I have noticed a chage of behavior on ImageViewer recently. Now, when 
zooming, the image can go offlimits when panning, which is not convinient 
at all.

Could you please take a look? Here is a test case:

        Form hi = new Form("Viewer", new BorderLayout());
        FontImage img = FontImage.createMaterial(FontImage.MATERIAL_IMAGE, 
UIManager.getInstance().getComponentStyle("Label"), 20f);      
        ImageViewer viewer = new ImageViewer(img) {
            int cilckCount = 0;
            @Override
            public void pointerReleased(int x, int y) {
                cilckCount ++;
                new UITimer(() -> cilckCount = 0).schedule(500, false, hi);
                if (cilckCount > 1) {
                    cilckCount = 0;                    
                    if (this.getZoom() > 1) {
                        this.setZoom(1);
                    } else {
                        this.setZoom(2);
                    }
                }
            }            
        };
        hi.add(BorderLayout.CENTER, viewer);
        hi.show();    

Thanks.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7b5bf98c-f0bd-4d3a-bf7a-5c1acde3287eo%40googlegroups.com.

Reply via email to