Browse Source

Update threadscroll.js

Made compatible for use with additional_javascripts.
pull/40/head
anonfagola 10 years ago
committed by czaks
parent
commit
b9886dc474
  1. 12
      js/threadscroll.js

12
js/threadscroll.js

@ -1,12 +1,13 @@
var hoverElem = null;
if(active_page == "index" || active_page == "ukko"){
var hoverElem = null;
$(document).mouseover(function(e){
$(document).mouseover(function(e){
var x = e.clientX, y = e.clientY,
elementOnMouseOver = document.elementFromPoint(x, y);
hoverElem = $(elementOnMouseOver);
});
});
$(document).keydown(function(e){
$(document).keydown(function(e){
//Up arrow
if(e.which == 38){
var ele = hoverElem;
@ -32,4 +33,5 @@ $(document).keydown(function(e){
}
}
}
});
});
}

Loading…
Cancel
Save