1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-07 15:11:32 +01:00

Update threadscroll.js

Made compatible for use with additional_javascripts.
This commit is contained in:
anonfagola 2014-09-23 19:31:06 -07:00
parent 02ff632e50
commit 986db033e2

View File

@ -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){
}
}
}
});
});
}