Permalink
Browse files

trying to optimize picture preview for mobile

  • Loading branch information...
sukhada committed Mar 15, 2013
1 parent 22fbf75 commit 0b8dd248c5e3a01ea987730942e6901e40cd8f1c
Showing with 1 addition and 1 deletion.
  1. +1 −1 reddit.js
View
@@ -284,7 +284,7 @@ if ($(window).width() < 704) {
var link = $(this).attr('href');
if (link != undefined) {
console.log('defined!');
- $(document).on('touchstart touchend', 'a', function(e) {
+ $(document).on('mouseenter', 'a', function(e) {
if (($(this).attr('href').indexOf("i.imgur") != -1) ||
($(this).attr('href').indexOf("jpg") != -1) ||
($(this).attr('href').indexOf("png") != -1) ||

0 comments on commit 0b8dd24

Please sign in to comment.