Skip to content

[Bug] In Fullscreen mode, get error when placing puzzle pieces. #13

@RukshanJS

Description

@RukshanJS
Uncaught TypeError: Cannot read properties of undefined (reading 'push')
    at drawPuzzleSideShape (jigsaw.js:35:8)
    at drawPuzzleSide (script.js:652:9)
    at drawJigsaw (script.js:661:5)
    at Piece.drawPost (script.js:552:17)
    at draw (script.js:313:15)
    at p.draw (transform.js:30:15)
    at _main.default.redraw (p5.js:70809:27)
    at _draw (p5.js:63046:25)

I was able to reproduce this multiple times.

Steps,

  1. Go to fullscreen mode
  2. Start solving the puzzle
  3. At some point when placing pieces on the board, this error is thrown and all the puzzle pieces are disappeared.

When exiting fullscreen after the error, the pieces are visible again, but the puzzle is messed up. (See screenshot below)
Screenshot 2023-01-29 at 18 08 55

UPDATE - Couldn't reproduce it lately. Will close if not get the error in near future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions