Skip to content

Commit

Permalink
Chore: Remove useless check for automatic DPR
Browse files Browse the repository at this point in the history
  • Loading branch information
tonilastre authored Feb 20, 2024
1 parent 642f882 commit f3bd02e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/canvas/canvas-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class CanvasRenderer<N extends INodeBase, E extends IEdgeBase> extends Em
}

// Change DPR from automatic to manual handling or change DPR value manually
if (!isNumber(previousDprValue) && isNumber(newDprValue) && newDprValue !== previousDprValue) {
if (!isNumber(previousDprValue) && isNumber(newDprValue)) {
this._dprObserveUnsubscribe?.();
this._resize();
}
Expand Down

0 comments on commit f3bd02e

Please sign in to comment.