chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b41443b
)
js: cursor: Make it default to "auto"
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 3 Apr 2021 22:54:28 +0000
(23:54 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 4 Apr 2021 19:07:53 +0000
(20:07 +0100)
Weirdly this SVG cursor disappears near the edge of the screen. WTF.
Anyway, I should fix the fallback.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index fbc386fcf03dab5ec6fedb0876913e2e277741df..033f3862e5841a0a7707dd2ec0240f04b4763180 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-502,7
+502,7
@@
function special_count_reupdate() {
let svg_data = btoa(svg);
style_text =
`svg[id=space] {
- cursor: url(data:image/svg+xml;base64,${svg_data}) ${xy},
text
;
+ cursor: url(data:image/svg+xml;base64,${svg_data}) ${xy},
auto
;
}`;
}
style_elem.innerHTML = style_text;