question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Robust options to control initial scroll

See original GitHub issue

Originally reported on Google Code with ID 768

Usability issue in all browsers.

When you go to prev/next month/day in the week/day views, it pops back to the hour
as specified in the firstHour option regardless of where you scrolled to on the previous
date range. I think this is a little too presumptuous.  In my case, I want it to retain
the current scrollTop when navigating date ranges.  Other people might want to mimick
Google Calendar and scroll so that the current time is in view.

The issues is caused by the logic in resetScroll function.

I vote for creating an option called autoScroll with the following values:
- first - the first hour of the day which would be the default to maintain backwards
compatability
- current - will scroll to the current time of day like Google Calendar
- remember - will remember where you scrolled to in the previous date range
- none - will do no scrolling logic

Reported by rbohn@versatile.com on 2010-12-22 13:07:25

Imported with 4 stars.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:21
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

7reactions
lucianholt97commented, Mar 25, 2021

Are there any updates on this? @arshaw can you please merge #6178? I tested it locally and it works like expected.
In addition to this, it also fixes the issue that the calendar jumps to the first time when an event is updated. In my case (using an event tooltip with popper) this also destroys the DOM Element of the event and leaves popper confused without any target element.

6reactions
arshawcommented, Oct 23, 2017

as @ParanormalCoder brings up, would be nice to be able to NOT change scroll when going prev/next

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maintain/Save/Restore scroll position when returning to a ...
I think this is the best answer as this method restores the exact scroll position and not only the first visible item. –...
Read more >
Docs | Plugins | ScrollSmoother - GreenSock
ScrollSmoother is seamlessly integrated with ScrollTrigger and GSAP for mega-robust animation capabilities. Set paused(true) to completely halt scrolling (users ...
Read more >
How to Scroll Down or Up using Selenium Webdriver
Ever wondered how to scroll down to the bottom of page using selenium scripts? This article helps with coding examples to scroll to...
Read more >
Scrollable Listbox Example | APG | WAI - W3C
Scrolling only works as expected if the listbox is the options' offsetParent . ... Home, Moves focus to and selects the first option....
Read more >
scroll-behavior - CSS: Cascading Style Sheets - MDN Web Docs
The scroll-behavior CSS property sets the behavior for a scrolling box when scrolling ... scroll-behavior: initial; scroll-behavior: revert; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found