tui.calendar icon indicating copy to clipboard operation
tui.calendar copied to clipboard

Keep scroll position after re-rendering(milestone, task, allday view and month more layer)

Open dongsik-yoo opened this issue 7 years ago • 9 comments

Version

v0.6.3

Development Environment

Mac Chrome

Current Behavior

The scroll position within Milestone, Task, All day view and month more layer is reset after re-rendering the Calendar.

Expected Behavior

Keep the scroll position after re-rendering the Calendar.

dongsik-yoo avatar Feb 23 '18 08:02 dongsik-yoo

It'll be resolved by using snabbdom. Be patient.

dongsik-yoo avatar Sep 05 '18 10:09 dongsik-yoo

Hi @dongsik-yoo,

are there any updates on this? It would be great to have more manual control on the scrolling.

Thanks, Yakov

YashkaSurin avatar May 31 '19 08:05 YashkaSurin

@YashkaSurin I'm sorry. I don't have any progress after at that time. I used virtual-dom with snabbdom to solve it, but snabbdom seems to be not managed at this time.

dongsik-yoo avatar May 31 '19 09:05 dongsik-yoo

@dongsik-yoo Thank you for the quick answer! Is it possible to disable auto scrolling completely?

YashkaSurin avatar May 31 '19 09:05 YashkaSurin

@YashkaSurin I think it's possible to adjust the scroll position after re-rendering it with saving the scroll position.

dongsik-yoo avatar May 31 '19 09:05 dongsik-yoo

Hi, I am currently having this issue as well, each time I schedule a new event, my screen scrolls away from the event and I need to scroll back to it.

Has anyone find a way yet to disable this yet?

johnnyBarendrecht avatar Jan 29 '20 12:01 johnnyBarendrecht

Hi, I faced the same problem. how to prevent auto scroll?

201524547 avatar Dec 16 '20 09:12 201524547

Hi, I faced the same problem. how to prevent auto scroll?

I solve this problem. I develop in React, and I use react tui calendar. I use useMemoHook to prevent auto scroll(re-rendering) and I change props by using ref

201524547 avatar Dec 17 '20 07:12 201524547

can someone provide an example of how they solved this?

BjoernRave avatar Oct 29 '21 13:10 BjoernRave