Sunday, November 2, 2025
spot_img

Cease contact scroll in Web page View – Cocos Creator


I wish to cease contact / swipe scroll characteristic in web page view however unable to attain can anyone assist me to do?
@slackmoehrle @RAAng @huynhthuan

You may rewrite these strategies:

You should use the BlockInput part by including it to the mother or father node of the node that should block the enter.

https://docs.cocos.com/creator/2.4/guide/zh/elements/block-input-events.html?h=occasion

Hey! i discovered one other swish manner of manging it with out having to create inputBlockers more often than not. It must be used inconjuction with enter blockers

– my spce for what i needed
→ the contents to nonetheless be interactable .
→ i can sitll use scroll to
→ stopping customers to scroll in any respect on their very own and having it in order that they will solely view 1 web page at a time and that i can destroy the previos web page after turning to that web page.

→ I dynamically add content material into a brand new web page utilizing a prefab template.

the very best i discovered was on my PageView Controler i principally do

 this.pageView.node.pauseSystemEvents(true);

this stops all enter occasions that pageView has to cease propagating and effervescent in order that the pageview is not there i’m om 3.8 so do with this data what could be wanted

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement -spot_img

Latest Articles