numeration

This commit is contained in:
Alfiya 2019-05-31 10:11:52 +03:00 committed by GitHub
parent ce863fee27
commit f7fd3e8755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,10 +156,10 @@ ball.onmousedown = function(event) {
moveAt(event.pageX, event.pageY);
}
// (3) move the ball on mousemove
// move the ball on mousemove
document.addEventListener('mousemove', onMouseMove);
// (4) drop the ball, remove unneeded handlers
// drop the ball, remove unneeded handlers
ball.onmouseup = function() {
document.removeEventListener('mousemove', onMouseMove);
ball.onmouseup = null;