• Just setting up for the first time. I have added an event to the calendar.

    When I view the calendar and click on the event, the popup for the event loads as it should but the page scrolls up and down almost like it is recentering itself.

    If I navigate away from that calendar and back the behavior no longer occurs.

    I will link a video from Imgur. please enable sound for a better description of the issue.

    Video of issue

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    This is caused by a smooth scroll script in your theme or a plugin. It doesn’t happen when you navigate because that copy of the calendar was loaded via AJAX, and the eventlistener that attaches that behavior isn’t listening for the My Calendar reloads.

    You’ll want to disable the smooth scroll feature wherever you have it.

    Thread Starter TheGuy

    (@little33)

    I have turned off smooth scroll and the issue persists. all plugins are currently disabled. Switching to 2024 resolves the issue so it is definitely something in the theme. but if I check page source for smooth scroll, “class=’calendar open et_smooth_scroll_disabled” is the only mention.

    • This reply was modified 1 year, 2 months ago by TheGuy.
    Plugin Author Joe Dolson

    (@joedolson)

    Ooh, yeah, that’s not so cool. It looks like smooth scroll is disabled, but the theme script is still capturing the link and moving focus. That’s pretty unnecessary; it’s just creating a place for conflicts.

    It’s possible there’s an escapement available – that’s what the et_smooth_scroll_disabled class is. Some smooth scroll scripts include a class that you can add to a link to tell the script to ignore that link; My Calendar includes those where I know them.

    But all of the smooth scroll scripts are completely pointless in modern sites – support for smooth scrolling in CSS has been available for 5 or 6 years now on most major browsers.

    I can’t tell from your site, because it’s using minified scripts, and that makes it a lot harder to trace what the script is doing. If you put your site in SCRIPT_DEBUG mode the theme should load un-minified scripts.

    For the record, this won’t be a problem in the next major release of My Calendar, but that’s not going to be ready for release for at least a month and a half.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Event pop-ups cause page jump.’ is closed to new replies.