Browse files

trying to optimize picture preview for mobile

  • Loading branch information...
1 parent 778bac2 commit 6527eeddcec6e32d24e5edddb95860cf5efdc2bc @sukhada committed Mar 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 reddit.js
View
2 reddit.js
@@ -291,7 +291,7 @@ $(document).on("mouseenter", "a", function(e) {
}
else {
console.log($(window).width());
- $("#img").css("top", 0);
+ $("#img").css("top", e.pageY - 10);
$("#img").css("left", 0);
$(this).css("color", "#05B8CC");
$("#img").append("<img class='image' src='"+ link +"'></img>")

0 comments on commit 6527eed

Please sign in to comment.