move to svg
This commit is contained in:
parent
def343004f
commit
698cd61503
11 changed files with 405 additions and 3 deletions
|
@ -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.
|
||||
|
||||

|
||||

|
||||
|
||||
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 |
41
2-ui/3-event-details/4-mouse-drag-and-drop/ball_shift.svg
Normal file
41
2-ui/3-event-details/4-mouse-drag-and-drop/ball_shift.svg
Normal file
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 |
Loading…
Add table
Add a link
Reference in a new issue