# Cannot use zoom for lightbox images on phones

**URL:** https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646
**Category:** Feature
**Created:** [4 september 2014 om 20:20 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646 "2014-09-04T20:20:47Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![lucas\_maximus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucas_maximus/32/114869_2.png) [@lucas\_maximus](https://meta.discourse.org/u/lucas_maximus)
#### Post date: [4 september 2014 om 20:20 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/1 "2014-09-04T20:20:47Z")

</div>

If a image is resized to smaller dimensions in discourse I cannot zoom the image either when it is in the lightbox or in the actual thread.

This makes viewing larger images that have been linked difficult without browsing away from the forum.

---

<div class="post-metadata">

### Author: ![solhuebner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/solhuebner/32/34652_2.png) [@solhuebner](https://meta.discourse.org/u/solhuebner)
#### Post date: [4 september 2014 om 20:50 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/2 "2014-09-04T20:50:45Z")

</div>

Zoom would be a dream in the lightbox!

---

<div class="post-metadata">

### Author: ![lucas\_maximus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucas_maximus/32/114869_2.png) [@lucas\_maximus](https://meta.discourse.org/u/lucas_maximus)
#### Post date: [4 september 2014 om 20:52 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/3 "2014-09-04T20:52:20Z")

</div>

I am 99% sure you can do it on G+

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4 september 2014 om 20:56 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/4 "2014-09-04T20:56:34Z")

</div>

Let’s try a large image here and see:

 ![](https://global.discourse-cdn.com/meta/original/3X/2/d/2d53491bd297a320e7e51c0d1777182fe52a8e43.jpg)

---

<div class="post-metadata">

### Author: ![solhuebner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/solhuebner/32/34652_2.png) [@solhuebner](https://meta.discourse.org/u/solhuebner)
#### Post date: [4 september 2014 om 20:57 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/5 "2014-09-04T20:57:49Z")

</div>

Galaxy Note 3 4.4.2 with Chrome… Can not zoom…

---

<div class="post-metadata">

### Author: ![solhuebner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/solhuebner/32/34652_2.png) [@solhuebner](https://meta.discourse.org/u/solhuebner)
#### Post date: [4 september 2014 om 20:58 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/6 "2014-09-04T20:58:46Z")

</div>

And I can move the site a very little bit too the left…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4 september 2014 om 21:01 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/7 "2014-09-04T21:01:04Z")

</div>

No repro.. here’s me after tapping on the lightboxed image on Chrome latest, Android latest.. then using my two fingers to pinch it bigger

 ![](https://global.discourse-cdn.com/meta/original/3X/2/a/2a9c3a9361683a40d33eb78e28d0f3db1eda32da.png) ![](https://global.discourse-cdn.com/meta/original/3X/2/c/2c233e4eab73347340cba73da5456d543b1208a1.png)

---

<div class="post-metadata">

### Author: ![solhuebner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/solhuebner/32/34652_2.png) [@solhuebner](https://meta.discourse.org/u/solhuebner)
#### Post date: [4 september 2014 om 21:09 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/8 "2014-09-04T21:09:26Z")

</div>

If I tap once on the lightbox it zooms in bit at a fixed ratio and then i can only scroll but not zoom…

---

<div class="post-metadata">

### Author: ![lucas\_maximus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucas_maximus/32/114869_2.png) [@lucas\_maximus](https://meta.discourse.org/u/lucas_maximus)
#### Post date: [4 september 2014 om 21:10 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/9 "2014-09-04T21:10:27Z")

</div>

Just tried it, if I tap in Chrome on Android I can zoom but only the top left hand corner when tapping. I am using latest Chrome on Android 4.1.2 on a S3 mini.

EDIT: it is totally broken in Firefox for Android.

---

<div class="post-metadata">

### Author: ![Lid](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@Lid](https://meta.discourse.org/u/Lid)
#### Post date: [4 september 2014 om 23:09 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/11 "2014-09-04T23:09:57Z")

</div>

are you sure you were able to use pinch gesture to control zoom after tap? i think it is a good bug if yes 😄

I opened this topic while ago  
[https://meta.discourse.org/t/add-pinch-to-zoom-for-images-on-mobile/19152](https://meta.discourse.org/t/add-pinch-to-zoom-for-images-on-mobile/19152)

---

<div class="post-metadata">

### Author: ![lucas\_maximus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucas_maximus/32/114869_2.png) [@lucas\_maximus](https://meta.discourse.org/u/lucas_maximus)
#### Post date: [5 september 2014 om 07:31 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/12 "2014-09-05T07:31:54Z")

</div>

I cannot zoom using Chrome on Android.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5 september 2014 om 10:32 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/13 "2014-09-05T10:32:32Z")

</div>

That is odd, considering I showed screenshots, above, of me zooming an image in Chrome on Android.

---

<div class="post-metadata">

### Author: ![fysics](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fysics/32/34080_2.png) [@fysics](https://meta.discourse.org/u/fysics)
#### Post date: [5 september 2014 om 11:21 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/14 "2014-09-05T11:21:15Z")

</div>

Do you have “force enable zoom” turned on under accessibility in chrome’s settings?

---

<div class="post-metadata">

### Author: ![lucas\_maximus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucas_maximus/32/114869_2.png) [@lucas\_maximus](https://meta.discourse.org/u/lucas_maximus)
#### Post date: [5 september 2014 om 17:53 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/15 "2014-09-05T17:53:23Z")

</div>

I have it disabled, if I enable it I can zoom

---

<div class="post-metadata">

### Author: ![solhuebner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/solhuebner/32/34652_2.png) [@solhuebner](https://meta.discourse.org/u/solhuebner)
#### Post date: [10 september 2014 om 13:03 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/16 "2014-09-10T13:03:06Z")

</div>

You should not be forced to use “force enable zoom” because how should I educate my users to do that…?!

---

<div class="post-metadata">

### Author: ![haiku](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haiku/32/103858_2.png) [@haiku](https://meta.discourse.org/u/haiku)
#### Post date: [10 september 2014 om 14:58 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/17 "2014-09-10T14:58:19Z")

</div>

I can do zoom in on Windows Phone but I suspect it’s just a happy accident… I can also zoom out from the page.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [13 september 2014 om 09:08 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/18 "2014-09-13T09:08:16Z")

</div>

AHA! Indeed I do. Sorry about that!

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [21 september 2014 om 12:26 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/19 "2014-09-21T12:26:43Z")

</div>

As an FYI, it seems to be because of this meta tag

```html
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

```

If you set it to

```html
<meta name="viewport" content="width=device-width, initial-scale=1.0">

```

You get the same initial output and permit users to pinch and zoom.

---

<div class="post-metadata">

### Author: ![solhuebner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/solhuebner/32/34652_2.png) [@solhuebner](https://meta.discourse.org/u/solhuebner)
#### Post date: [25 september 2014 om 04:22 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/20 "2014-09-25T04:22:18Z")

</div>

Looks like a good solution to me. Would a PR be accepted for that?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [25 september 2014 om 04:31 UTC](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646/21 "2014-09-25T04:31:25Z")

</div>

Unlikely since that affects every single page. You need a solution that affects light box only.

[Volgende pagina](https://meta.discourse.org/t/cannot-use-zoom-for-lightbox-images-on-phones/19646.md?page=2)
