~johanvandegriff/johanv.xyz

b5cc0fb3e612d5d36cb36f501edfe968faba25f1 — Johan Vandegriff 2 months ago 8fe56d8
ignore initial scrolling after reload
1 files changed, 3 insertions(+), 1 deletions(-)

M ATinyGame/index.php
M ATinyGame/index.php => ATinyGame/index.php +3 -1
@@ 904,7 904,7 @@ function handle_key(e) {
}

var scrollEnabled = true;
var lastScroll = window.scrollY;
var lastScroll = 0;
var scrollS = 0;
var scrollR = 0;
function handle_scroll() {


@@ 1013,6 1013,8 @@ function play() {
  window.onscroll = handle_scroll;
  window.onresize = handle_resize;

  lastScroll = window.scrollY;

  w = Math.round(2777/2);
  h = Math.round(2694/2);