Skip to content

Commit

Permalink
Tried to bring back html5 dnd, to no avail
Browse files Browse the repository at this point in the history
  • Loading branch information
casesandberg committed Aug 17, 2015
1 parent 1704134 commit 9e29d37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.js
Expand Up @@ -4,8 +4,8 @@ var React = require('react');

var Home = require('./components/home/Home.jsx');

var html = React.renderToString(React.createElement(Home));
console.log(html);
// var html = React.renderToString(React.createElement(Home));
// console.log(html);

React.render(
React.createElement(Home),
Expand Down
7 changes: 7 additions & 0 deletions src/components/common/Saturation.jsx
Expand Up @@ -81,6 +81,13 @@ class Saturation extends ReactCSS.Component {
}
}

handleDragStart(e) {
// This stops the ghosting, but has some weird effects in Chrome occasionally.
// var img = document.createElement("img");
// img.src = 'http://casesandberg.github.io/react-color/docs/images/blank.gif';
// e.dataTransfer && e.dataTransfer.setDragImage(img, 0, 0);
}

render() {
var pointer = <div is="circle" />;

Expand Down

0 comments on commit 9e29d37

Please sign in to comment.