Monday, December 12, 2022
HomeGame DevelopmentTips on how to Scroll Father or mother ScrollView when contact transfer...

Tips on how to Scroll Father or mother ScrollView when contact transfer up or down within the nest little one ScrollView’s space? – Cocos Creator


Hey,

I’ve nested scrollviews with:

  1. A Blue Vertical ScrollView
  2. And a Little one yellow Horizontal ScrollView
    My query is:
  • Tips on how to disable scroll occasion within the little one when person 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 baby 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 baby node of inexperienced scroll view, two scroll views are usually not sibling.

You’ll be able to 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