Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrollView 组件参考 #2880

Open
t99t99t99 opened this issue Mar 25, 2024 · 2 comments
Open

ScrollView 组件参考 #2880

t99t99t99 opened this issue Mar 25, 2024 · 2 comments

Comments

@t99t99t99
Copy link

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

@MrKylinGithub
Copy link
Contributor

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

@t99t99t99
Copy link
Author

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

@MrKylinGithub MrKylinGithub reopened this Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants