Hey all
I’m utilizing cocos creator v 2.4.9
Scroll the ScrollView to a place vertically then load totally different scene and are available again utilizing cc.director.loadScene
.
Presently the ScrollView will reset the place to the highest. I attempted utilizing setting place manually utilizing setContentPosition()
in onLoad
and begin
nevertheless it didn’t work.
Tips on how to clear up this downside?
i’ve attempt to setContentPostion as you describe, and it really works effectively, right here is my demo:
56667.zip (230.7 KB)
you could present a demo that may reproduce this query.
That is the demo challenge.
NewProject_3.zip (1.2 MB)
This can be as a consequence of utilizing customized scroll view