• Resolved noapi1

    (@noapi1)


    Hi,

    great plugin!

    One issue: When opening an event-post with a map and scrolling down the page with mouse wheel, page-scrolling ends and instead the map is zooming out, if cursor enters map. If I first scroll to the map and stop, before cursor reaches the map, then I move the cursor over the map (without mousewheel) and out of the map again, now I can scroll over the map without zooming in both directions.

    So there seems to be an issue with initialization of map/zoom-disabling. Any idea how to fix this?

    Another issue: Although I deactivated comments on places-posts the comment form is displayed. Deactivation on event-posts works correctly.

    Thanks!

Viewing 15 replies - 1 through 15 (of 21 total)
  • A workaround is this:
    You can unset the scroll in wp-content/events-manager/includes/js/events-manager.js
    Search for: scrollwheel: is_touch and change it to scrollwheel: false. It’s twice coded in that file.

    Note:
    This will be lost when the plugin is updated.

    Thread Starter noapi1

    (@noapi1)

    Thanks.

    But with that, zooming an purpose will not work any longer I think. Also, as you said, in some weeks the change is lost and I don’t remember to do it again.

    Hi,

    I’m sorry to here that the post map is giving you a headache. Hopefully we can figure out a way to get it under control again.

    Have you tried manually setting the zoom level. Goto “wp-content/plugins/events-manager/includes/js/events-manager.js”

    Scroll down to line 851. There it says:
    zoom: 20,

    Change this number to adjust zooming. To zoom in, lower the number. To zoom out, increase the number.

    I changed my settings to zoom: 17, to zoom in a little but more 🙂

    There is also another method of doing so if that does not work: http://wp-events-plugin.com/tutorials/modifying-event-location-google-maps/

    I’m not 100% sure if this will solve the issue but if not, please let me know and we will continue to work this out.

    Thread Starter noapi1

    (@noapi1)

    Hi jordanthedesigner,

    this is not my issue. My issue is that on loading an eventpage with a map the map initially interprets all mouse-scroll-events and zooms the map. Instead it should not do that, but only if I click on the map before. Otherwise I should be able to scroll down the whole page without interacting with the map.

    This is normal behavior with Google Maps. You should be able to disable it by editing the same file Jordan mentioned but changing the line that says

    scrollwheel: is_touch

    to

    scrollwheel: false

    Thread Starter noapi1

    (@noapi1)

    Hi caimin_nwl,

    I don’t want to disable it, I only want to work it correctly, because it is all fine except for the first scroll over.

    Then you would need to write some kind of custom code that displays the scrollwheel until the user clicks the map, for example.

    Thread Starter noapi1

    (@noapi1)

    Hi caimin_nwl,

    please read my description again. There seems to be an initialization issue, because after moving the pointer over the map (in and out again) WITHOUT scrolling, then I can scroll over the map. If I only scroll over the map from the start of the page, the map stops scrolling the page and starts to zoom out instead.

    Please check it by yourself. This cannot be normal.

    • This reply was modified 6 years, 7 months ago by noapi1.

    May this an issue with your theme or another plugin. Can you post a link?

    Thread Starter noapi1

    (@noapi1)

    It is a demo website, cannot post a link, sorry. But I use the theme “Polestar”. I don’t think it comes from this theme.

    Does the issue not happen on your demo site?

    No, it doesn’t. It’s possible this is a conflict caused by your theme or another plugin. To check if it is, can you test with all other plugins deactivated and while running the default WordPress theme?

    Thread Starter noapi1

    (@noapi1)

    I tried with “Twenty Seventeen” and without most plugins. The effect still remains.

    But I also tried your demo:
    http://demo.wp-events-plugin.com/events/josh-groban-2017-10-17/

    And it is the same here: On scrolling over the map page scrolling stops and map zooms out.

    As I mentioned before, that’s the standard way Google Maps works. This is not related to Events Manager.

    I agree it’s not a great user experience, but to change the standard behavior you’ll need to write some kind of custom code that disables the scrollwheel until the user clicks the map, for example.

    Thread Starter noapi1

    (@noapi1)

    I thought it is the default functionality that the map does not recognize the scrolling mouse. So it is the other way round?

    Strange, because I don’t know why there is this unscroll-feature active, because I did not install anything like this.

    Thread Starter noapi1

    (@noapi1)

    Is

    scrollwheel: is_touch

    now changed in the current update to

    scrollwheel: false

    as default?
    Thanks.

    • This reply was modified 6 years, 5 months ago by noapi1.
Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘First mouse scroll over map triggers zoom’ is closed to new replies.