12-19-2011 10:52 AM
Hi,
Although the click-n-hold feature to bring up the BlackBerry mini menu with the option to "Invite to download" is handy, in my particular app (at least in certain spots) it is definately not desired.
In my case, I have a "spinner" arrow, that the user can click once to increment, or click and hold to auto-increment at a speed faster than they can click.
It works by starting the auto increment "onmousedown" and continues to spin until "onmouseup" (e.g. user releases)
However on the BlackBerry device... a click and hold of about a second causes the mini menu to popup (blocking the view) and not triggering the mouseup event... thus the control spins uncontrolably.
Mini menu:
I'm just wondering if there is a setting to turn this off on a per element basis (e.g. a special attribute) or worst case scenario... a way to turn the feature off completely within my app (not a huge issue, as there is an option in the main app menu to invite a user)
Solved! Go to Solution.
12-21-2011 02:56 PM
Hi steve_web,
Are you calling event.preventDefault();
button below the post(s)12-21-2011 03:19 PM
12-23-2011 11:22 PM
Hmm, I tried the preventDefault() and stopPropagation()... neither worked...
Is there any chance there is a config.xml option to toggle this per application?
01-04-2012 02:57 PM
Hi steve_web,
I'm surprised to hear that because I thought that had worked for me in the past, but I believe that was for touch and not cursor click.
Does using this api help? https://bdsc.webapps.blackberry.com/html5/apis/bla
button below the post(s)01-04-2012 03:47 PM
01-05-2012 10:36 AM
Hi steve_web,
If you can't stop the event propogation through javascript you may be forced to do it through Java,
You can do this by overriding the navigationClick() method in the framework. You can find the corresponding class here.
button below the post(s)
01-05-2012 11:18 AM
I tried the blackberry.ui.menu.clearMenuItems(); https://bdsc.webapps.blackberry.com/html5/apis/bla
Thanks everyone for your help!