Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hrm.  It's kind of unplayable on Firefox where the space key scrolls down a page...

Huh that's pretty weird. Surprised Firefox bubbles up the spacebar outside of the iframe. I don't know if I'd call it unplayable, but its certainly pretty annoying to have to scroll back up whenever you want to restart. I'll see what I can do.

Also just realized space was the preview key so it was super annoying. Playable technically, I guess, but not fun.

Anyway I disabled the default action for space so it should be fine now, and I tested it on Firefox and it seems okay now. Let me know if you're still having issues!

(+1)

Awesome, thanks!  In general for web games it's good to preventDefault on the keys you're using: e.g. Firefox has the "search for text when you start typing" option, so any key could scroll the window and take focus away from the game.  And of course there are various extensions that use unusual keys for things. So preventDefault is a nice safety net.