commit
797c65867b
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ Let's update our algorithm:
|
|||
|
||||
```js
|
||||
// onmousemove
|
||||
// ball has position:absoute
|
||||
// ball has position:absolute
|
||||
ball.style.left = event.pageX - *!*shiftX*/!* + 'px';
|
||||
ball.style.top = event.pageY - *!*shiftY*/!* + 'px';
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue