Skip to content

Commit

Permalink
Fixed opacity bug when dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor Hakes committed Mar 4, 2015
1 parent 2bcfd31 commit fe28c02
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "html5-sortable",
"main": "sortable.js",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/taylorhakes/html5-sortable",
"authors": [
"Taylor Hakes"
Expand Down
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
margin-bottom: 30px;
}

.column.sortable-moving {
opacity: .4;
}

.column.sortable-over,
#columns-dragOver .column.sortable-over,
#columns-dragEnd .column.sortable-over,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "html5-sortable",
"version": "1.0.0",
"version": "1.0.1",
"description": "Lightweight HTML5 Sortable. No jQuery needed",
"main": "sortable.js",
"directories": {
Expand Down
3 changes: 0 additions & 3 deletions sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@
}

function handleDragEnd() {
// this/e.target is the source node.
this.style.opacity = '1';

[].forEach.call(sortables, function (col) {
col.classList.remove(overClass, movingClass);
});
Expand Down
2 changes: 1 addition & 1 deletion sortable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fe28c02

Please sign in to comment.