Skip to content

Commit f59801d

Browse files
committed
Fix: Removed unnecessary p5. prefixes and preserved canvas position
1 parent 15d1510 commit f59801d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgl/p5.RendererGL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ class RendererGL extends Renderer {
930930
const w = this.width;
931931
const h = this.height;
932932
const defaultId = this.canvas.id;
933-
const isPGraphics = this._pInst instanceof p5.Graphics;
933+
const isPGraphics = this._pInst instanceof Graphics;
934934

935935
// Preserve existing position and styles before recreation
936936
const prevStyle = {

0 commit comments

Comments
 (0)