Skip to content

Commit

Permalink
list hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ladas-larry committed Aug 1, 2016
1 parent fd22a24 commit fc1e246
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/SortableComposition.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ function SortableComposition(Component) {
if (e.type === "dragover") {
positionX = e.clientX;
positionY = e.clientY;
topOffset = overEl.offsetTop - overEl.scrollTop + overEl.clientTop;
topOffset = overEl.getBoundingClientRect().top;
}

if (e.type === "touchmove") {
/*if (e.type === "touchmove") {
positionX = e.touches[0].pageX;
positionY = e.touches[0].pageY;
if (updateEdge) {
Expand All @@ -115,7 +115,7 @@ function SortableComposition(Component) {
}
e.currentTarget.style.top = positionY - elementEdge + "px";
topOffset = elementEdge;
}
}*/

if (this.props.outline === "list") {
mouseBeyond = isMouseBeyond(positionY, topOffset, height);
Expand Down
6 changes: 3 additions & 3 deletions src/SortableComposition.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ export function SortableComposition(Component) {
if(e.type === "dragover"){
positionX = e.clientX;
positionY = e.clientY;
topOffset = overEl.offsetTop - overEl.scrollTop + overEl.clientTop
topOffset = overEl.getBoundingClientRect().top;
}

if (e.type === "touchmove") {
/*if (e.type === "touchmove") {
positionX = e.touches[0].pageX;
positionY = e.touches[0].pageY;
if(updateEdge){
Expand All @@ -106,7 +106,7 @@ export function SortableComposition(Component) {
}
e.currentTarget.style.top = (positionY - elementEdge) + "px";
topOffset = elementEdge;
}
}*/

if (this.props.outline === "list") {
mouseBeyond = isMouseBeyond(positionY, topOffset, height)
Expand Down

0 comments on commit fc1e246

Please sign in to comment.