Skip to content

Commit

Permalink
Merge pull request #105 from nheir/patch-1
Browse files Browse the repository at this point in the history
fix: border artefact on mobile
  • Loading branch information
robertleeplummerjr authored Aug 26, 2021
2 parents dea0bfa + fbf43a0 commit b0606b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class Shapes extends BaseGlLayer {

if (border) {
const lines = [];
for (let i = 1, iMax = flat.vertices.length; i < iMax; i = i + 2) {
for (let i = 1, iMax = flat.vertices.length - 2; i < iMax; i = i + 2) {
lines.push(flat.vertices[i], flat.vertices[i - 1]);
lines.push(flat.vertices[i + 2], flat.vertices[i + 1]);
}
Expand Down

0 comments on commit b0606b3

Please sign in to comment.