# Disable map scroll by default?

**URL:** https://meta.discourse.org/t/disable-map-scroll-by-default/26623
**Category:** Feature
**Created:** [22 maart 2015 om 04:25 UTC](https://meta.discourse.org/t/disable-map-scroll-by-default/26623 "2015-03-22T04:25:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [22 maart 2015 om 04:25 UTC](https://meta.discourse.org/t/disable-map-scroll-by-default/26623/1 "2015-03-22T04:25:57Z")

</div>

Continuing the discussion from [Embedding google maps short urls is broken](https://meta.discourse.org/t/embedding-google-maps-short-urls-is-broken/26615/)

This is a feature request.. could we get the scrolling on embedded maps disabled by default?

A la: [http://stackoverflow.com/questions/2330197/how-to-disable-mouse-scroll-wheel-scaling-with-google-maps-api](http://stackoverflow.com/questions/2330197/how-to-disable-mouse-scroll-wheel-scaling-with-google-maps-api)

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [22 maart 2015 om 08:11 UTC](https://meta.discourse.org/t/disable-map-scroll-by-default/26623/2 "2015-03-22T08:11:16Z")

</div>

Discourse doesn’t actually consume the Google maps API. The oneboxer fiddles with the oneboxed URL until it gets something that can be successfully embedded in an `<iframe>`, so unless there’s an option to disable the mousewheel that can be passed via the query string, this is going to be a problem.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [22 maart 2015 om 10:54 UTC](https://meta.discourse.org/t/disable-map-scroll-by-default/26623/3 "2015-03-22T10:54:25Z")

</div>

This seems to contain a solution for this problem:

> <https://stackoverflow.com/questions/21992498/disable-mouse-scroll-wheel-zoom-on-embedded-google-maps>

Maybe someone will add it to the Google Maps Onebox.

---

<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: [24 maart 2015 om 04:58 UTC](https://meta.discourse.org/t/disable-map-scroll-by-default/26623/4 "2015-03-24T04:58:35Z")

</div>

Sure @techapj can you add this to the outstanding onebox issues along with short Google Maps URLs and the Flickr issue.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [24 maart 2015 om 17:51 UTC](https://meta.discourse.org/t/disable-map-scroll-by-default/26623/5 "2015-03-24T17:51:50Z")

</div>

Fixed via:

[https://github.com/discourse/onebox/pull/281](https://github.com/discourse/onebox/pull/281)

@elberet fixed short Google Maps URL issue via:

[https://github.com/discourse/onebox/pull/280](https://github.com/discourse/onebox/pull/280)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [24 maart 2015 om 21:07 UTC](https://meta.discourse.org/t/disable-map-scroll-by-default/26623/6 "2015-03-24T21:07:29Z")

</div>


