# Double-Click Unzoom not working for me at all

**URL:** <https://community.plotly.com/t/double-click-unzoom-not-working-for-me-at-all/17286>\
**Category:** plotly.js\
**Created:** [December 22, 2018, 6:43pm UTC](https://community.plotly.com/t/double-click-unzoom-not-working-for-me-at-all/17286 "2018-12-22T18:43:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![comintel](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@comintel](https://community.plotly.com/u/comintel)\
**Post date:** [December 22, 2018, 6:43pm UTC](https://community.plotly.com/t/double-click-unzoom-not-working-for-me-at-all/17286/1 "2018-12-22T18:43:10Z")

</div>

Hi,

I love Plot.ly!

However, double click does not work for me to unzoom a plot.

I have tried Firefox, Chrome, Edge and Opera.

This applies across all Plot.ly demo sites, including R-based ones and Python based ones and others.

It fails 100% of the time.

It also fails from the code I am developing using R using both at the distributed version and at ‘4.8.0.9000’.

Yet, it works fine for sites using other libraries including Dygraph, and also on the following test site: [Browser Mouse Event Test Page](https://unixpapa.com/js/testmouse.html)

My first question is, is Double-Click Unzoom working for anybody anywhere? If so, could someone give me a link?

If it is broken everywhere, is there an open bug report? I could not find one.

Thanks

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [December 24, 2018, 3:01pm UTC](https://community.plotly.com/t/double-click-unzoom-not-working-for-me-at-all/17286/2 "2018-12-24T15:01:10Z")

</div>

Double-click to unzoom should be operational. Note that only 2D cartesian subplots support it at the moment.

---

<div class="post-metadata">

**Author:** ![comintel](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@comintel](https://community.plotly.com/u/comintel)\
**Post date:** [December 24, 2018, 3:50pm UTC](https://community.plotly.com/t/double-click-unzoom-not-working-for-me-at-all/17286/3 "2018-12-24T15:50:35Z")

</div>

Thank you for commenting!.

However I cannot get even the most trivial example to work.

For example:

> **[Getting Started with plotly.js](https://plot.ly/javascript/getting-started/)**
>
> Getting Started with plotly for JavaScript.

  
(the Hello World example at the bottom)

Could somebody possibly try it, or post a link to any example where double-click unzoom does work?

Or are you saying that it only works in subplots and not in simple plots that are not subplots?

Also my main concern is the message that pops up: “Double Click to Zoom Back Out”. This message should not come up if double-click unzoom is not going to work.

It could be something about my configuration but I cannot fathom what. I do notice that range selection by mouse drag is a little “sloppy”. Maybe that is a clue. Or maybe it is just broken for everyone. I need to somehow determine which is the case.

Thanks!

---

<div class="post-metadata">

**Author:** ![comintel](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@comintel](https://community.plotly.com/u/comintel)\
**Post date:** [December 24, 2018, 8:03pm UTC](https://community.plotly.com/t/double-click-unzoom-not-working-for-me-at-all/17286/4 "2018-12-24T20:03:01Z")

</div>

Here is a simple test case using R in which I use partial\_bundle to attempt to minimize any potential interference.

```
p <- plot_ly(x = 1:10, y = 1:10) %>% add_markers()

p1 <- partial_bundle(p)

p1
```

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [December 26, 2018, 3:47pm UTC](https://community.plotly.com/t/double-click-unzoom-not-working-for-me-at-all/17286/5 "2018-12-26T15:47:41Z")

</div>

> [@comintel](#):
>
> Or are you saying that it only works in subplots and not in simple plots that are not subplots?

Not at all. Graph with only cartesian axes (e.g. [https://codepen.io/plotly/pen/PPVeer](https://codepen.io/plotly/pen/PPVeer)) should have double click working.

---

<div class="post-metadata">

**Author:** ![comintel](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@comintel](https://community.plotly.com/u/comintel)\
**Post date:** [December 26, 2018, 6:57pm UTC](https://community.plotly.com/t/double-click-unzoom-not-working-for-me-at-all/17286/6 "2018-12-26T18:57:47Z")

</div>

Thanks again.  
That example also fails for me on my Windows 10 PC.

However, I figure that it must be working for you and others, so I tried it on an Android phone using the Puffin browser in trackpad mode, which provides a double click capability, and it DOES WORK there.

So I know that the basic capability is there. Why exactly it is not working on my PC, I have no idea. It is a Logitech M705 mouse. I tried various Windows mouse speed settings and they made no difference. As I mentioned, double click works ok with other JavaScript libraries and mouse click test sites.

I see that previous reports have been made of timing sensitivity in the double-click detection code. Perhaps my environment just happens to reproduce the problem nicely? If this seems plausible, I would be more than happy to gather any evidence that would be useful…

Thanks
