Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1337222
    c1s
    Participant

    Hi,
    i have set a google map which should be draggable on bigger screens and tablets.
    However, on mobile phones, the map should not be draggable.
    How is it possible to get this working?
    Thanks for your help!

    #1337224
    c1s
    Participant
    This reply has been marked as private.
    #1337516
    Rad
    Moderator

    Hi there,

    Thanks for posting in.

    Please add this CSS to Admin > Appearance > Customizer > Custom > CSS

    @media ( max-width: 979px ) {
    
    .x-google-map {
    pointer-events: none;
    }
    
    }

    Hope this helps.

    #1337944
    c1s
    Participant

    Hi, thanks.
    There is a link on my google map which leads to google maps externally or the google maps app (on mobile devices). This links should of course still work on mobile devices.

    #1337946
    Rupok
    Member

    Hi there,

    Thanks for writing back. It’s not possible to control the draggable functionality for mobile only. If you want to disable this, you need to do it for all devices – http://prntscr.com/dxyau5

    Cheers!

    #1338178
    c1s
    Participant

    Hi!

    What happens if i duplicate the section of the map, and then turn the draggable function off and show this duplicated section only in mobile devices (and hide the other one in mobile devices)?

    Would this duplicated section substantially increase the data volume of the page that has to be loaded?

    #1338339
    Joao
    Moderator

    Hi There,

    It would not be critical.

    Hope it helps

    Joao

  • <script> jQuery(function($){ $("#no-reply-1337222 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>