Increase smoothing of ImageViewer

13 views
Skip to first unread message

Fuad Nassar

unread,
Jul 8, 2020, 11:03:51 AM7/8/20
to CodenameOne Discussions
hi,
i want to increase smoothing for ImageViewer cmb
i tried these functions bun not work
        gui_Image_Viewer.setScrollAnimationSpeed(100);
        gui_Image_Viewer.setScrollOpacityChangeSpeed(100);


Shai Almog

unread,
Jul 8, 2020, 10:22:22 PM7/8/20
to CodenameOne Discussions
Hi
You probably shouldn't change either one of these. I

'm not sure what you mean by "smoothing". Do you mean panning within the image, the transition between one image to the next or the process of dragging the finger.

Fuad Nassar

unread,
Jul 13, 2020, 2:57:48 AM7/13/20
to CodenameOne Discussions
i want to make more easy to scrolling (Reduced touch path)

Shai Almog

unread,
Jul 13, 2020, 11:19:50 PM7/13/20
to CodenameOne Discussions
This isn't scrolling. It's panning. And it should be pretty smooth.
I'm guessing that you placed the image viewer in a scrollable parent and as a result scrolling and panning collide. Place the image viewer in the center of a border layout form without any scrolling. It should be smooth.
Reply all
Reply to author
Forward
0 new messages