Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

draggable permalinks #3251

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 5 comments
Closed

draggable permalinks #3251

openstreetmap-trac opened this issue Jul 23, 2021 · 5 comments

Comments

@openstreetmap-trac
Copy link

Reporter: steelman
[Submitted to the original trac issue database at 12.40pm, Monday, 27th September 2010]

Make the map permaliks draggable to outsied applications, the same way as the "Link" in the Google Maps is. Today when I try to drag any of them I drag the map instead.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 1.04pm, Monday, 27th September 2010]

This is an OpenLayers issue and not something we have any control over as far as I know - the problem is that OpenLayers intercepts all the mouse events over the map area so the normal browser handling of drags on links is suppressed.

The OpenLayers bug tracker is at http://trac.openlayers.org/ if you want to report this as a problem with OpenLayers.

@openstreetmap-trac
Copy link
Author

Author: steelman
[Added to the original trac issue at 1.35pm, Tuesday, 28th September 2010]

It is the OpenLayers issue only if the permalink div is a child of the map div. If, however, you make them siblings inside the content div, then the dragging work as I suggested. No JS code and no CSS need to be changed!

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 1.48pm, Tuesday, 28th September 2010]

Well if you know how to fix it then I look forward to receiving your patch.

@openstreetmap-trac
Copy link
Author

Author: steelman
[Added to the original trac issue at 11.27am, Saturday, 9th October 2010]

Ping!

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 8.13am, Monday, 11th October 2010]

Applied.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant