On a phone, stray taps in SilverBullet open the keyboard while you only meant to read or scroll. Mr.Red's Tap Shield library fixes this. It makes the page act read-only until you double-tap or long-press. This setup switches it on by itself on phone-sized screens.
https://github.com/Mr-xRed/silverbullet-libraries/blob/main/Repository/Mr-xRed.md
DisableAccidentalMobileTaps.CONFIG page, add a space-lua code block (three backticks followed by space-lua) and paste this code inside it:-- switch the Tap Shield on whenever a page loads on a phone-sized screen
event.listen {
name = "editor:pageLoaded",
run = function()
if js.window.innerWidth <= 700 then setupStreamlinedShield() end
end
}
System: Reload.The library has its own switch-on code, turned off. Setting it in CONFIG instead means an update to the library won't undo it.
Mobile: Toggle Accidental Tap Shield turns it off or on until the next refresh.