Вопрос

In http://onlyabutton.com/, when you press the left and right arrow keys, the window shakes a bit, most likely because of canvas dimensions. How do I fix this? Help would be appreciated!

Это было полезно?

Решение

You just have to add:

html, body {
    margin: 0;
}

You set the canvas width to 100% of the window size but forget to subtract the margin of body.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top