lukaswelte
lukaswelte

Reputation: 3001

When dragging Google Map Safari drags the whole page

On a webpage i have a google map that should be draggable. But when dragging the Google Map (is the official web component), Safari drags the whole website (like when dragging an image).

Firefox and Chrome work great (IE not tested). Any ideas?

MacBook Pro and Safari 7 and 8 where tested.

Would be awesome to hear some ideas.

Upvotes: 1

Views: 414

Answers (1)

lukaswelte
lukaswelte

Reputation: 3001

The drag of the window can be disabled via:

window.ondragstart = function() { return false; } 

This solves the issue (although of course the dragging functionality that causes this bug is then disabled)

Upvotes: 2

Related Questions