(column, id, x, y, ticks)
| 582 | this.trackVariant = 0 |
| 583 | } |
| 584 | onTouchEnded(column, id, x, y, ticks) { |
| 585 | const data = this.data; |
| 586 | const code = data.CODE; |
| 587 | code.stop(); |
| 588 | |
| 589 | if (this.trackFlag) { |
| 590 | if (this.trackIndex >= 0) { |
| 591 | if (this.anchorState == 0) { |
| 592 | if (this.trackState == 0) { |
| 593 | model.doToggleBreakpoint(data.path, this.trackIndex + 1); |
| 594 | } |
| 595 | } |
| 596 | else { |
| 597 | const path = data.path; |
| 598 | const anchorLine = this.anchorIndex + 1; |
| 599 | const trackLine = this.trackIndex + 1; |
| 600 | const breakpoints = data.breakpoints.items; |
| 601 | const breakpoint = breakpoints.find(breakpoint => (breakpoint.path == path) && (breakpoint.line == anchorLine)); |
| 602 | model.doClearBreakpoint(breakpoint); |
| 603 | if (this.trackState == 1) { |
| 604 | const index = breakpoints.findIndex(breakpoint => (breakpoint.path == path) && (breakpoint.line == trackLine)); |
| 605 | breakpoints.splice(index, 1); |
| 606 | } |
| 607 | breakpoint.line = trackLine; |
| 608 | breakpoints.sort(data.sortBreakpoints); |
| 609 | model.doSetBreakpoint(breakpoint); |
| 610 | application.distribute("onBreakpointsChanged"); |
| 611 | } |
| 612 | } |
| 613 | else if (this.anchorState == 1) { |
| 614 | model.doToggleBreakpoint(data.path, this.anchorIndex + 1); |
| 615 | } |
| 616 | } |
| 617 | else { |
| 618 | if (this.anchorState == 0) { |
| 619 | model.doToggleBreakpoint(data.path, this.anchorIndex + 1); |
| 620 | } |
| 621 | else { |
| 622 | if (shiftKey) { |
| 623 | model.doEnableDisableBreakpoint(data.path, this.anchorIndex + 1); |
| 624 | } |
| 625 | else { |
| 626 | const path = data.path; |
| 627 | const line = this.anchorIndex + 1; |
| 628 | const breakpoint = data.breakpoints.items.find(breakpoint => (breakpoint.path == path) && (breakpoint.line == line)); |
| 629 | EditBreakpoint(breakpoint, column.x + column.width + 8, column.y + (this.anchorIndex * this.lineHeight)); |
| 630 | } |
| 631 | } |
| 632 | } |
| 633 | } |
| 634 | onTouchMoved(column, id, x, y, ticks) { |
| 635 | const data = this.data; |
| 636 | const code = data.CODE; |
nothing calls this directly
no test coverage detected