WordPress maps – scroll not active on maps

//javascript file - jQuery code
//overlaying är div som är först ovanpå iframe
    $('.overlaying').find('iframe').css('pointer-events', 'none');

    $( '.overlaying' ).on( "click", function() {
        $('.overlaying').find('iframe').css('pointer-events', 'inherit');

    $( '.overlaying' ).mouseleave(function() {
        $('.overlaying').find('iframe').css('pointer-events', 'none');

If you want to scroll when mouse on maps use this code. Just add it to javascript file and change name of “overlaying” to class name of the first class before iframe.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please reload

Please Wait