I’m trying to create a simple system to drag and drop some files.
I’ve did good, but sometime when you are with your cursor near .drop
div margin and enter, it’s starts "flickering".
After you drag a image (.png) for example in the blue background
everythings works (even when you leave it) …but… sometimes with your cursor on the margin of .drop
div, something is happening.
How can I fix that?
2
Answers
Make these changes in css
When you are dragging on the
.chatMessage
and out of the.drop
element, you don’t have any issue but when you are going on the.drop
element it’s another children element and has itself events.So you shouldn’t have any issues if you prevent events from the children’s elements.
Solution
Add this CSS code to your CSS file: