Skip to content

Commit

Permalink
fixed bug about e.direction of split-pane
Browse files Browse the repository at this point in the history
  • Loading branch information
zhigang.li committed Jan 17, 2018
1 parent 36ec91f commit 569d3d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/my-components/split-pane/split-pane/split-pane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ export default {
e.atMin = 100 - offset <= this.minTransed;
e.atMax = 100 - offset <= this.minTransed;
if (this.triggerOffset < this.oldOffset) {
e.direction = 0;
e.direction = this.right ? 1 : 0;
} else {
e.direction = 1;
e.direction = this.right ? 0 : 1;
}
this.oldOffset = this.triggerOffset;
this.$emit('input', this.triggerOffset);
Expand Down

0 comments on commit 569d3d8

Please sign in to comment.