Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix hybrid scenarios (touch + mouse)

see #21
  • Loading branch information...
commit c386d87aa3a0a7d211bf27490497404e6a33f469 1 parent cd541dc
@johnny authored
Showing with 5 additions and 14 deletions.
  1. +5 −14 source/js/jquery-sortable.js
View
19 source/js/jquery-sortable.js
@@ -119,20 +119,11 @@
tolerance: 0
}, // end group defaults
containerGroups = {},
- groupCounter = 0
-
- if('ontouchstart' in window){
- eventNames = {
- start: "touchstart.sortable",
- end: "touchend.sortable touchcancel.sortable",
- move: "touchmove.sortable"
- }
- } else {
- eventNames = {
- start: "mousedown.sortable",
- end: "mouseup.sortable",
- move: "mousemove.sortable"
- }
+ groupCounter = 0,
+ eventNames = {
+ start: "touchstart.sortable mousedown.sortable",
+ end: "touchend.sortable touchcancel.sortable mouseup.sortable",
+ move: "touchmove.sortable mousemove.sortable"
}
/*
Please sign in to comment.
Something went wrong with that request. Please try again.