Skip to content

Commit

Permalink
Remove extra console logs and distracting zoom-fit (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja committed Feb 29, 2024
1 parent 6096f61 commit 815aa76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/components/field/svg/FieldOverlayRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ class FieldOverlayRoot extends Component<Props, State> {
window.addEventListener("resize", () => this.handleResize());

window.addEventListener("center", (e) => {
console.log(`Centering on ${e}`);
console.log(`current zoom level: ${this.state.zoom}`);
this.center(
(e as CustomEvent).detail.x,
(e as CustomEvent).detail.y,
Expand Down Expand Up @@ -125,8 +123,6 @@ class FieldOverlayRoot extends Component<Props, State> {
return 0;
}
handleResize() {
console.log(`current zoom level: ${this.state.zoom}`);

const factor = this.getScalingFactor(this.svgRef?.current);
this.context.model.uiState.setFieldScalingFactor(factor);
}
Expand Down
1 change: 0 additions & 1 deletion src/components/sidebar/PathSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class PathSelectorOption extends Component<OptionProps, OptionState> {
const selected =
this.props.uuid == this.context.model.document.pathlist.activePathUUID;
const name = this.getPath().name;
this.context.model.zoomToFitWaypoints();
if (name != this.state.name && !this.state.renaming) {
this.state.name = name;
}
Expand Down

0 comments on commit 815aa76

Please sign in to comment.