Title: Avoid scroll on calendar (days, hours) clicks
Last modified: January 12, 2020

---

# Avoid scroll on calendar (days, hours) clicks

 *  Resolved [rom174](https://wordpress.org/support/users/rom174/)
 * (@rom174)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/avoid-scroll-on-click/)
 * 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](https://wordpress.org/support/users/dotonpaper/)
 * (@dotonpaper)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/avoid-scroll-on-click/#post-12319943)
 * Hello,
 * Please send an email at [support@pinpoint.world](https://wordpress.org/support/topic/avoid-scroll-on-click/support@pinpoint.world?output_format=md)
   and our support team will check this.
 * Thank you!
 *  Thread Starter [rom174](https://wordpress.org/support/users/rom174/)
 * (@rom174)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/avoid-scroll-on-click/#post-12319966)
 * Thank you, I just wrote you
 *  Thread Starter [rom174](https://wordpress.org/support/users/rom174/)
 * (@rom174)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/avoid-scroll-on-click/#post-12323782)
 * 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.

 * ![](https://ps.w.org/booking-system/assets/icon-256x256.png?rev=2192807)
 * [Pinpoint Booking System - Version 2](https://wordpress.org/plugins/booking-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/booking-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/booking-system/)
 * [Active Topics](https://wordpress.org/support/plugin/booking-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/booking-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/booking-system/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [rom174](https://wordpress.org/support/users/rom174/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/avoid-scroll-on-click/#post-12323782)
 * Status: resolved