Monday, December 12, 2022
HomeGame DevelopmentScroll Mum or dad ScrollView when contact transfer up or down within...

Scroll Mum or dad ScrollView when contact transfer up or down within the nest baby ScrollView’s space? – Cocos Creator


Hi there,

I’ve nested scrollviews with:

  1. A Blue Vertical ScrollView
  2. And a Little one yellow Horizontal ScrollView
    My query is:
  • disable scroll occasion within the baby when consumer strikes up or down within the yellow space ? ( in that case solely blue scrollView occasion is working )

Please assist me!

Thanks!




1 Like

Iā€™m utilizing cocos creator newest model 3.6.2

NewProject_10.zip (10.2 KB)
Like this?

I’ve the identical downside with @thobn24h, so the issue is when I’ve a ā€œMainScrollViewā€ which is vertically scroll and ā€œChildScrollViewā€ which is horizontally scroll, ā€œChildScrollViewā€ is a toddler of ā€œMainScrollViewā€ content material.

However, when contact location is touching ā€œChildScrollViewā€, I canā€™t scroll the ā€œMainScrollViewā€

@Koei, my downside is Yellow scroll view is a toddler node of inexperienced scroll view, two scroll views aren’t sibling.

You possibly can change the node tree construction your self, is that not what you need both?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments