We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc70de3 commit 21bf128Copy full SHA for 21bf128
resources/js/simulator/simulator.js
@@ -57,13 +57,11 @@ export function preload() {
57
*/
58
export function setup() {
59
const canvHeight = windowHeight - 90;
60
- let canvasWidth = 0;
61
- if (windowWidth < 500) {
62
- canvasWidth = windowWidth - 155;
63
- } else if (windowWidth < 700) {
+ let canvasWidth = windowWidth - 315;
+ if (windowWidth < 700) {
64
canvasWidth = windowWidth - 215;
65
- } else {
66
- canvasWidth = windowWidth - 315;
+ } else if (windowWidth < 500) {
+ canvasWidth = windowWidth - 155;
67
}
68
let canvas = createCanvas(canvasWidth, canvHeight, P2D);
69
0 commit comments