Skip to content

Commit 746e8d9

Browse files
committed
fix screenshot button blinking
1 parent 299457c commit 746e8d9

File tree

4 files changed

+126
-125
lines changed

4 files changed

+126
-125
lines changed

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ <h1>Litecanvas</h1>
176176
id="screenshot"
177177
title="Take a screenshot"
178178
aria-label="Take a screenshot"
179-
style="margin-left: auto; order: 3"
179+
style="margin-left: auto; order: 3; display: none"
180180
>
181181
<svg
182182
xmlns="http://www.w3.org/2000/svg"

public/js/app.js

Lines changed: 122 additions & 122 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const cacheName = "luizbills.litecanvas-editor-v1";
2-
const version = "2025.8.1.2";
2+
const version = "2025.8.3.0";
33

44
const precacheResources = [
55
"/",

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pako from "pako";
22
import { EditorView } from "codemirror";
33
import { EditorState } from "@codemirror/state";
4-
import { keymap, scrollPastEnd } from "@codemirror/view";
4+
import { keymap } from "@codemirror/view";
55
import {
66
javascript,
77
javascriptLanguage,
@@ -348,6 +348,7 @@ if (isMobile) {
348348

349349
if (!smallScreen) {
350350
show(hideEditor);
351+
show(screenshotButton);
351352
if (autoplay) runCode();
352353
} else {
353354
show(playButton);

0 commit comments

Comments
 (0)