Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
djnro
Commits
de295b6c
Commit
de295b6c
authored
Nov 18, 2015
by
Zenon Mousmoulas
Browse files
Now that we have a working solution for mobile, full-width maps, (re-)enable
scrolling and dragging
parent
fecdd9f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
static/js/home-page-map.js
View file @
de295b6c
...
...
@@ -59,11 +59,11 @@
geocoder
=
new
google
.
maps
.
Geocoder
();
// disable scrolling/draging in maps
if
(
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i
.
test
(
navigator
.
userAgent
)
)
{
isDraggable
=
fals
e
;
isDraggable
=
tru
e
;
isScrollable
=
true
;
}
else
{
isDraggable
=
true
;
isScrollable
=
fals
e
;
isScrollable
=
tru
e
;
}
var
mapOptions
=
{
...
...
static/js/world-map.js
View file @
de295b6c
...
...
@@ -59,11 +59,11 @@
geocoder
=
new
google
.
maps
.
Geocoder
();
if
(
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i
.
test
(
navigator
.
userAgent
)
)
{
isDraggable
=
fals
e
;
isDraggable
=
tru
e
;
isScrollable
=
true
;
}
else
{
isDraggable
=
true
;
isScrollable
=
fals
e
;
isScrollable
=
tru
e
;
}
var
mapOptions
=
{
center
:
latlng
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment