Skip to content

Commit

Permalink
fix: fix group drag condition
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed May 9, 2022
1 parent 54ef5a0 commit 35c194a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export function setCustomDrag(

return {
...(isConvert ? convertDragDist(state, result) : result),
isDrag: true,
isPinch: !!isPinch,
parentEvent: true,
datas: draggableDatas,
Expand Down Expand Up @@ -68,10 +67,12 @@ export default class CustomGesto {

this.isFlag = true;
} else {

clientX = this.prevX + delta[0];
clientY = this.prevY + delta[1];
this.isDrag = true;

if (delta[0] || delta[1]) {
this.isDrag = true;
}
}

this.prevX = clientX;
Expand Down

0 comments on commit 35c194a

Please sign in to comment.