It Doesn't Work With Images
See original GitHub issuevar Floorplan = React.createClass({
render: function() {
var allBoothKeys = Object.keys(this.props.booths)
, self = this
, booths
if (allBoothKeys.length < 1) return null
booths = allBoothKeys.map(function(key) {
return (<Booth key={key} booth={self.props.booths[key]} />)
})
return (
<Draggable
start={{ x: 0, y: 0 }}
>
<div>
{booths}
</div>
</Draggable>
)
}
})
Works. But if, inside div, I add
<img id="layout" src="img/layout.png" />
Does something weird: the drag starts on mouse up and I have to click again to stop the drag.
Issue Analytics
- State:
- Created 8 years ago
- Comments:10
Top Results From Across the Web
How to Fix Images Not Loading in Chrome - Online Tech Tips
When Chrome doesn't display images on a site, switch to another web browser on your computer and see if you can load the...
Read more >7 Ways to Fix Google Chrome Not Loading Images - MakeUseOf
Open Chrome's menu and head to Settings. From the left pane, click Privacy and security. Click Site Settings > Images. Below Default behavior, ......
Read more >9 Fixes When Images Not Loading in Chrome - Help Desk Geek
9 Fixes When Images Not Loading in Chrome · 1. Try a Different Browser · 2. Check the Show All Images Option ·...
Read more >Troubleshoot issues with Google Images - Google Search Help
If images don't show or are slow to load when you search on images.google.com, try the following steps. After each step, do an...
Read more >5 Reasons Why Your Images Won't Load | SiteUptime Blog
1. Your Photos Are Too Large · 2. The Image Doesn't Exist · 3. Wrong Filename and Extension · 4. Local File Path...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It’s because of the default HTML5 drag API. if you change your img tag to
it should work as expected
@sreetamdas You could use a better package like https://github.com/clauderic/react-sortable-hoc