minor
This commit is contained in:
parent
03499d6e50
commit
9baeb3c0a0
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ Let's update our algorithm:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// onmousemove
|
// onmousemove
|
||||||
// у мяча ball стоит position:absoute
|
// ball has position:absoute
|
||||||
ball.style.left = event.pageX - *!*shiftX*/!* + 'px';
|
ball.style.left = event.pageX - *!*shiftX*/!* + 'px';
|
||||||
ball.style.top = event.pageY - *!*shiftY*/!* + 'px';
|
ball.style.top = event.pageY - *!*shiftY*/!* + 'px';
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue