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

How to listen start and end event of moving ? #35

Open
zhanyuzhang opened this issue Jan 2, 2020 · 2 comments
Open

How to listen start and end event of moving ? #35

zhanyuzhang opened this issue Jan 2, 2020 · 2 comments

Comments

@zhanyuzhang
Copy link

I want to listen for the end event.

@zhanyuzhang
Copy link
Author

I have solved the problem by Sketchpad#onTouchStart and Sketchpad#onTouchEnd event. Thx.

@LubomirKurpel
Copy link

LubomirKurpel commented Aug 17, 2023

For anyone wondering this is the code:

function eventfunction() {
	console.log("event happened");
}		

var canvas = document.getElementById('sketchpad');

canvas.addEventListener('mouseup', eventfunction, false);

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