Robust options to control initial scroll
See original GitHub issueOriginally 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:
- Created 8 years ago
- Reactions:21
- Comments:14 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
as @ParanormalCoder brings up, would be nice to be able to NOT change scroll when going prev/next