Closed Cazka closed 2 years ago
When someone has a very specific aspect ratio, the viewport detection can fail.
this if statement in particular will cause this issue. https://github.com/Cazka/diepAPI/blob/bc4a4aed6d8dae237cdea1892773394589429546/src/minimap.ts#L72
we can add more checks:
if ctx.globalAlpha == 0.1 if ctx.fillStyle == #00000 if transform.e and transform.f are inside the minimap
ctx.globalAlpha
ctx.fillStyle
transform.e
transform.f
Closed by #40
When someone has a very specific aspect ratio, the viewport detection can fail.
this if statement in particular will cause this issue. https://github.com/Cazka/diepAPI/blob/bc4a4aed6d8dae237cdea1892773394589429546/src/minimap.ts#L72
we can add more checks:
if
ctx.globalAlpha
== 0.1 ifctx.fillStyle
== #00000 iftransform.e
andtransform.f
are inside the minimap