A simple way to prevent misclicks on the scrolling box map produced by cocos game engine

This article mainly explains how to use cocos creator to solve the problem of conflicts between scrolling and touching in our daily scroll box development, resulting in mis-touch behavior.
Date: November 25, 2023

Specific matters

Note: When we scroll the scroll box, there will be delays. At this time, we use code to solve the need to lock, but in fact the cocos engine provides a very simple solution, without locking.

Solution

Insert image description here

Guess you like

Origin blog.csdn.net/hj960511/article/details/134615987