Skip to content

Commit

Permalink
feat: delete useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Jul 29, 2022
1 parent 513a3cf commit 82e3b4d
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export class SplitXComponent implements OnInit {
const width = move >= this.baseWith ? this.baseWith - (move - this.start) : this.baseWith + (this.start - move);
this.width = this.countMinMax(width, [this.min, this.max]);
this.x.emit(this.width);
// this.x.emit(this.start - move > this.current - this.max ? this.max : this.start - move + this.current);
});
document.addEventListener('mouseup', (e) => {
if (!this.isListen) {
Expand All @@ -44,10 +43,6 @@ export class SplitXComponent implements OnInit {
this.isListen = false;
this.baseWith = this.width;
document.documentElement.style.userSelect = '';
// const move = e.clientX;
// const width = this.start - move + this.baseWith;
// this.width = this.countMinMax(width, [this.min, this.max]);
// this.x.emit(this.width);
});
}
countMinMax(current, range) {
Expand Down

0 comments on commit 82e3b4d

Please sign in to comment.