cocos-docs icon indicating copy to clipboard operation
cocos-docs copied to clipboard

ScrollView 组件参考

Open t99t99t99 opened this issue 11 months ago • 2 comments

URL : https://github.com/cocos-creator/creator-docs/blob/master/zh/ui-system/components/editor/scrollview.md

t99t99t99 avatar Mar 25 '24 03:03 t99t99t99

未知问题,请描述具体问题再开启此issue。谢谢反馈!

MrKylinGithub avatar Jun 03 '24 06:06 MrKylinGithub

filePath: zh/ui-system/components/editor/scrollview.md callback(scrollview, eventType, customEventData){} eventType是数字,不是字符串

得先定义let ScrollViewEventMap = [ "scroll-to-top", "scroll-to-bottom", "scroll-to-left", "scroll-to-right", "scrolling", "bounce-top", "bounce-bottom", "bounce-left", "bounce-right", "scroll-ended", "touch-up", "scroll-ended-with-threshold", "scroll-began", ]

ScrollViewEventMap[eventType] = ScrollView.EventType.xxx

t99t99t99 avatar Jun 03 '24 07:06 t99t99t99