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

touch事件为什么获取不到GUITouch对象 #20

Closed
huoxiangdong opened this issue Mar 15, 2021 · 1 comment
Closed

touch事件为什么获取不到GUITouch对象 #20

huoxiangdong opened this issue Mar 15, 2021 · 1 comment

Comments

@huoxiangdong
Copy link

class DefaultToolbar extends Toolbar {
	render() {
		return super.render(
			<Hybrid textAlign="center" width="full" height="full" onTouchMove= { test }>
				<Button onClick={review_code}>
					<Text class="toolbar_btn" value={"\ue9ab"} />
				</Button>
			</Hybrid>
		);
	}
}


function test( evt: GUITouchEvent) {
  console.log(evt)
}

image

@huoxiangdong
Copy link
Author

.

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

1 participant