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
Developer
Posts: 174
Registered: ‎03-05-2009
My Device: Dev Alpha
My Carrier: -
Accepted Solution

block scroll view

im fighting to prevent scrolling of ScrollView when doing custom touch animations....is there anyway to block the ScrollView temporarily?

 

Something like preventing the scrollview from consuming touch events?

 

i've tried capturing the touchEvent on the parent container of scrolllview using touchCaptured and then within this slot set the touchpropagationmode of the scrollview to NONE (based on some constraints). I can then reset this touchpropagationmode when the user lifts his finger from the screen...

https://developer.blackberry.com/cascades/reference/bb__cascades__touchpropagationmode.html

 

but this didn't work....the scrolling still happened Smiley Sad

 

any ideas are welcome!

 

 

Developer
Developer
Posts: 174
Registered: ‎03-05-2009
My Device: Dev Alpha
My Carrier: -

Re: block scroll view

the method i wrote above seems to work *better* with the gold release now...there's probably some more scenarios to handle or some latency issues with touch events but this is good enough for a release!

 

the trick is to set the touchpropagationmode property of the container (scrollview) you don't want to receive touch events......then later reset it.