Skip to content

Commit

Permalink
fix unintended side effects from PR-#9.
Browse files Browse the repository at this point in the history
remove class “sv-visibility-hidden” regardless of whether a move is executed, as this class gets added on click and not on move.
  • Loading branch information
Bugra Firat committed Jun 5, 2015
1 parent 5ad0a8b commit 8545d5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/angular-sortable-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,10 @@
html.off('mousemove touchmove', onMousemove);
html.off('mouseup touchend', mouseup);
html.removeClass('sv-sorting-in-progress');
if(moveExecuted)
if(moveExecuted){
$controllers[0].$drop($scope.$index, opts);
else
$element.removeClass('sv-visibility-hidden');
}
$element.removeClass('sv-visibility-hidden');
});

// onMousemove(e);
Expand Down

0 comments on commit 8545d5f

Please sign in to comment.