numeration
This commit is contained in:
parent
ce863fee27
commit
f7fd3e8755
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue