• Resolved rom174

    (@rom174)


    Hello,

    I have a calendar inside a fixed div, when a day/hour is clicked, it scrolls the main page instead of the calendar div. As a result, the ‘usual’ behavior that drives the user to the next selection is not handled + it is weird to see the page scroll while it is not asked.
    What should I do in order to cancel this scroll or to retarget the calendar container ?

    Thank you for your help

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

    (@dotonpaper)

    Hello,

    Please send an email at [email protected] and our support team will check this.

    Thank you!

    Thread Starter rom174

    (@rom174)

    Thank you, I just wrote you

    Thread Starter rom174

    (@rom174)

    We just resolved it with someone of the support at pinpoint.
    In order to stop the auto scroll if needed, you need to comment the line 2531 and 5638 of this file : /plugins/booking-system/assets/js/jquery.dop.frontend.BSPCalendar.js

    DOPPrototypes.scrollToY($('#DOPBSPCalendar'+ID+' .DOPBSPCalendar-hours').offset().top-40)

    DOPPrototypes.scrollToY($('#DOPBSPCalendar-reservation'+ID).offset().top+$('#DOPBSPCalendar-reservation'+ID).height()-$(window).height()+50);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Avoid scroll on calendar (days, hours) clicks’ is closed to new replies.