its possible to prevent the scroll (movements) in MapContainer?

44 views
Skip to first unread message

romanca...@gmail.com

unread,
Aug 6, 2016, 6:06:18 PM8/6/16
to CodenameOne Discussions
Hi! im tryng to prevent the scroll in the mapContainer when i put the finger on it.

i tryed to put over the component another container (layered layout) but it didnt work.

do you know if its possible to do in CN1?


thanks


If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device

Shai Almog

unread,
Aug 7, 2016, 1:22:23 AM8/7/16
to CodenameOne Discussions, romanca...@gmail.com
Hi,
If you will make the layered component on top focusable it will grab all the events and should block this.

romanca...@gmail.com

unread,
Aug 7, 2016, 7:54:09 AM8/7/16
to CodenameOne Discussions, romanca...@gmail.com
thanks! any example??

Shai Almog

unread,
Aug 8, 2016, 12:16:33 AM8/8/16
to CodenameOne Discussions, romanca...@gmail.com
myComponentInTheLayeredPane.setFocusable(true);
Reply all
Reply to author
Forward
0 new messages