move to svg

This commit is contained in:
Ilya Kantor 2019-07-29 12:07:35 +03:00
parent def343004f
commit 698cd61503
11 changed files with 405 additions and 3 deletions

View file

@ -107,7 +107,7 @@ It would be better if we keep the initial shift of the element relative to the p
For instance, if we start dragging by the edge of the ball, then the cursor should remain over the edge while dragging.
![](ball_shift.png)
![](ball_shift.svg)
1. When a visitor presses the button (`mousedown`) -- we can remember the distance from the cursor to the left-upper corner of the ball in variables `shiftX/shiftY`. We should keep that distance while dragging.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB