Skip to content

Commit e016664

Browse files
committed
Minor improvement to floating bottom bar behavior
1 parent 6568162 commit e016664

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

TODO.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,11 @@
146146
- history.pushstate with non-cloneable values fails
147147
- Copy/paste does not always work
148148
- Line numbers have small lag on scroll
149-
- Special keys bar has bad placement on Chrome on Android
150149
- Special keys bar buttons cause active element blur when double tapped on
151150
iOS
152151
- Side-scrolling special keys bar on iOS inserts on pointer up
152+
- Special keys bar and formula bar is scrollable on mobile, even with
153+
`touch-action: none` - needs touch handler with preventDefault to stop
154+
vertical scrolling
153155
- Accidentally typing "RC" while typing another formula can cause everything
154156
to hang

src/App.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
align-items: center;
5050
gap: 0.5ch;
5151
overflow-x: auto;
52+
background-color: var(--bg-color);
53+
z-index: 19;
5254
}
5355
5456
.bottombar {
@@ -239,7 +241,7 @@
239241
$effect(() => {
240242
// iOS scrolls the formula bar to the middle on focus, this counteracts that
241243
// (if it happens to run after the keyboard is up - inconsistent)
242-
if (showInputButtons) {
244+
if (showInputButtons && visualBottom) {
243245
window.scrollTo({
244246
top: 0,
245247
behavior: "instant",

0 commit comments

Comments
 (0)