Skip to content

Commit a781374

Browse files
committed
Add note on HTML5 Drag API (see #69)
1 parent 302a500 commit a781374

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ If you move the element manually, you have two options:
129129
2. When moving the `<Draggable>`, ref the element and
130130
[call `resetState()`](https://github.com/STRML/react-resizable/blob/master/lib/Resizable.jsx#L48).
131131

132+
## Dragging images
133+
134+
The HTML5 Drag & Drop API can interact strangely with `<Draggable>`, especially on `<img>` tags.
135+
136+
If you want an `<img>` to be draggable, set `<img draggable="false" />`. See the
137+
[corresponding issue](https://github.com/mzabriskie/react-draggable/issues/69).
132138

133139
## Contributing
134140

0 commit comments

Comments
 (0)