My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2277: Navigate previous/next when dragging event to edges
3 people starred this issue and may be notified of changes. Back to list
Status:  ExportedToGithub
Owner:  ----
Closed:  Aug 2015


Sign in to add a comment
 
Reported by d...@tappcandy.com, Sep 5, 2014
I'm trying to get dragScroll (http://fullcalendar.io/docs/event_ui/dragScroll/) working, but when a dragged event reaches the edge of the calendar, nothing happens.

jsFiddle - http://jsfiddle.net/9c2hdzd1/1/
Sep 5, 2014
#1 van.wijg...@mdxs.net
Could you please describe what you observe versus the expected behavior?
Sep 5, 2014
#2 van.wijg...@mdxs.net
I think the following scenario describes the problem which the 'dragScroll' option solves:

[1] Open http://jsfiddle.net/wijgerden/w0546y25/ and adjust the layout such that the Result pane shows the whole calendar; and observe the vertical scrollbar on 'agendaWeek' to scroll the visible times
[2] Start dragging an event, like 'Lunch' and keep it (while dragging) on either the bottom edge or the upper edge of the calendar area that has the scrollbar
[3] Observe how the scrollbar marker and associated times adjust to allow you to drag the event into time slots not previously visible
[4] Change the 'dragScroll: true,' (default) to 'dragScroll: false' and run the fiddle again (or for convenience: use http://jsfiddle.net/wijgerden/w0546y25/5/ which is an update with this change done)
[5] Repeat step [2]
[6] Observe how it does *NOT* change the visible area of time slots...
Sep 5, 2014
#3 d...@tappcandy.com
Thanks for the reply.

The behaviour I'd have expected is for the calendar to go to the previous or next period when the dragged event reaches either the left or right hand edge or the calendar area.

I.e. on the example at http://jsfiddle.net/9c2hdzd1/1/ , I would expect the calendar to advance to Sep 8 - 14 2014 when the event reaches the right hand edge.

Hope that makes sense.
Sep 5, 2014
#5 van.wijg...@mdxs.net
Understand your expectation, but this is AFAIK not implemented. Perhaps you could look into detecting that something is dragged outside of the calendar (have something left/right of it that fires some event) and then advance the calendar through code.

For this issue though, I would recommend it to be closed as Invalid; though perhaps the concept of 'scroll container' can be better explained in the documentation, on or linked from http://fullcalendar.io/docs/event_ui/dragScroll/
Sep 5, 2014
Project Member #6 adamrs...@gmail.com
As @van.wijgerden has stated, this is not what dragScroll is meant to do. I'll repurpose this ticket to represent what you describe and see if more people demand it.
Summary: Navigate previous/next when dragging event to edges (was: dragScroll not working)
Status: Accepted
Labels: Type-Feature
Oct 20, 2014
#7 kcaow.c...@gmail.com
I have been looking for exactly this feature. It would greatly increase fullcalendar's usability in situations where event dates may change. I would be extremely grateful, as I'm sure many others would, if it were to be implemented.

(I have tried to implement this myself but unfortunately to no avail)
Oct 30, 2014
Project Member #8 adamrs...@gmail.com
 Issue 2318  has been merged into this issue.
Dec 6, 2014
#9 smiffy...@gmail.com
Searched all over but this is the only place I can find what I want to do - is there any way to do this?
Dec 15, 2014
#10 sant....@hotmail.com
This proposed so useful , exchange month automatically when the intem this off the edge . I'll try to do something about it.
Aug 21, 2015
Project Member #11 adamrs...@gmail.com
Discussion for this issue has moved to the following URL:
https://github.com/fullcalendar/fullcalendar/issues/2542

This is because Google Code is shutting down. Apologies if you are being pestered with these notifications. This is a one-time event.

Happy coding,
Adam
Status: ExportedToGithub
Sign in to add a comment

Powered by Google Project Hosting