Permalink
Browse files

trying to optimize picture preview for mobile

  • Loading branch information...
sukhada committed Mar 15, 2013
1 parent 25f6133 commit d0229fde9f920be20ec36066e324115d86e10908
Showing with 1 addition and 0 deletions.
  1. +1 −0 reddit.js
View
@@ -288,6 +288,7 @@ if ($(window).width() < 704) {
($(this).attr('href').indexOf("png") != -1) ||
($(this).attr('href').indexOf("gif") != -1)) {
$('a').bind('touchstart touchend', function(e) {
+ alert(this);
e.preventDefault();
$("#img").css("top", e.pageY - 10);
$("#img").css("left", 0);

0 comments on commit d0229fd

Please sign in to comment.