Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 57
Registered: ‎06-15-2011
My Device: PlayBook
My Carrier: Rogers

Re: Disable context-menu on taphold.

Is there a known way to only disable the context menu? I've got a scrollable DIV element and when I use preventDefault(); it does keep the context menu from appearing, but it also stops the DIV from being scrollable. 

New Contributor
Posts: 8
Registered: ‎10-21-2011
My Device: Developer
My Carrier: NA

Re: Disable context-menu on taphold.

Not sure if you still need it but after a long time digging through forums and github I found this:


blackberry.ui.contextmenu.enabled = false;

Works perfectly for my grid list images.

Posts: 142
Registered: ‎07-27-2011
My Device: Red Z10, 32GB PlayBook, Numerous Android/WP8/FirefoxOS/Other devices
My Carrier: T-Mobile

Re: Disable context-menu on taphold.

Not sure if the OP needed it, but it helped me out