Comments on DOM event portability revisited

4 Comments.

Try adding a style rule like body {overflow:hidden;} to prevent the scrolling. It works for me om Chrome, anyway.

-- fluffy 2017-10-14 07:54 UTC


Hmm, maybe I’ll try and see what comes out. Didn’t bother me anyway. And are you saying the cursor keys work on Chrome? I’ve just received a compatibility report to the contrary. 🙂

-- Felix 2017-10-14 07:54 UTC


Fun, and works in Iceweasel 3.5.19 (unbranded Firefox from Debian) as well.

The tiny scrolling on arrows is, so far, not problematic (though I suspect it may become so at some point). I don’t know how difficult it is to actually implement in JS (possibly trivial, possibly a lot harder than I think), but adding the ability for players to configure which keys they were using might make azerty and pyfgcrl players whine a little less.

Of course, the easy workaround is just to put the game on a page by itself. But that would be cheating. *grin*

-- Spiky Caterpillar 2017-10-14 07:55 UTC


Yes, in an iframe. I did that for Marocco. It’s convenient in many ways, but it just seems inelegant.

-- Felix 2017-10-14 07:55 UTC