Skip to content
This repository was archived by the owner on Nov 17, 2024. It is now read-only.
This repository was archived by the owner on Nov 17, 2024. It is now read-only.

Infinite zoom-in in room editor causes epilepsy attacks. #407

@MBCX

Description

@MBCX

Describe the bug
While poking around in the room editor, I noticed that it's possible to zoom-in to infinity. Doing so causes the screen to flash many bright colours at the speed of the scroll wheel that can cause epilepsy attacks.

To Reproduce
Steps to reproduce the behaviour (which I don't recommend):

  1. Start any project, go to the rooms tab and pick a room.
  2. Begin zooming.

Expected behaviour
There should be a limit in how much you can zoom in. I think 8000% maximum should be enough.

System information report
Ct.js v3.2.0 😽 (packaged)

NW.JS v0.67.1
Chromium v104.0.5112.80
Node.js v18.7.0
Pixi.js v5.3.11

WebGL available
WebGL vendor Google Inc. (AMD)
WebGL renderer ANGLE (AMD, Radeon RX 580 Series Direct3D11 vs_5_0 ps_5_0, D3D11)
OS win32 x64 // Windows_NT 10.0.22621

Screenshots (recommended)
Do not watch this video if you're sensitive to rapid flashing colours.
ctjs-epilepsy-attack.webm

Metadata

Metadata

Labels

scope:ideThis involves changes to ct.IDE, its UI and logictype:bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions