Welcome!

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

Native Development

Reply
Developer
msalamali
Posts: 38
Registered: ‎09-09-2013
My Device: Dev Alpha C
My Carrier: Etisalat
Accepted Solution

Disable default touch interactions

Hi,

I'm developing an app that requires moving an image by finger. the problem is that when trying to move the image to the right, the context menu at the left appears also when i try to move the image up, the action bar moves up also! i tried to set the propagation mode of the parent container of the image to PassThrough but this does not help.

i'm using Dev Alpha C for OS 10.2.

Any way to disable these default touch interactions?

Thanks

Be like Dan Brown, get the dimensions of every place you visit!
MeasureMe on App World
Please use plain text.
Developer
BBSJdev
Posts: 5,948
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Disable default touch interactions

The context menu should only show up for an object you have actually specified one for, are you wanting to have both drag and drop and context oprion functions on the same object?


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
msalamali
Posts: 38
Registered: ‎09-09-2013
My Device: Dev Alpha C
My Carrier: Etisalat

Re: Disable default touch interactions

Sorry, maybe i misused the term "Context Menu".. to make things clear here is exactly what i mean,... when i trying to move the line image to the right, this menu on the left appear!

 

Be like Dan Brown, get the dimensions of every place you visit!
MeasureMe on App World
Please use plain text.
Developer
BBSJdev
Posts: 5,948
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Disable default touch interactions

[ Edited ]

Okay this is a known issue and one that actually I've been working with BlackBerry for a while on.

 

The JIRA report I entered many moons ago is here...

 

https://www.blackberry.com/jira/browse/BBTEN-811

 

The option is to either accept that this will happen but that it has been improved in later versions of the OS.

 

Or to disable peek on that page which can be done by setting the navigationPane's peekEnabled property...

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__navigationpane.html#property...


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
msalamali
Posts: 38
Registered: ‎09-09-2013
My Device: Dev Alpha C
My Carrier: Etisalat

Re: Disable default touch interactions

[ Edited ]

thank you! ..setting peekEnabled of the TabbedPane to be false solves the problem of moving right.
The remaining is the problem of moving up in which the title bar shown above "Dimensions" is also moving up!

Be like Dan Brown, get the dimensions of every place you visit!
MeasureMe on App World
Please use plain text.
Developer
BBSJdev
Posts: 5,948
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Disable default touch interactions

Do you mean the Title bar?


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
msalamali
Posts: 38
Registered: ‎09-09-2013
My Device: Dev Alpha C
My Carrier: Etisalat

Re: Disable default touch interactions

[ Edited ]

yes .. sorry .. i have corrected it

Be like Dan Brown, get the dimensions of every place you visit!
MeasureMe on App World
Please use plain text.
Developer
BBSJdev
Posts: 5,948
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Disable default touch interactions

[ Edited ]

If so then you can set the scroll behaviour of the TitleBar to sticky to stop it scrolling off the top of the screen...

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__titlebarscrollbehavior.html

 

You also might like to manage your QML scene graph better to fit the screen size for the device it is on exactly so that scrolling isn't invoked by accident.

 

On the keyboard devices the default for TitleBar is NonSticky on larger screen devices it is Sticky.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
msalamali
Posts: 38
Registered: ‎09-09-2013
My Device: Dev Alpha C
My Carrier: Etisalat

Re: Disable default touch interactions

solved..thank you!
Be like Dan Brown, get the dimensions of every place you visit!
MeasureMe on App World
Please use plain text.