My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1101: Agenda event dragging, snapping to different columns is erratic
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Aug 2014


Sign in to add a comment
 
Reported by yuliyan....@gmail.com, Sep 3, 2011
First i like to thank you for the great job you have done with this tool.
Here is the issue:
1) I use IE for my project and did not test in Firefox. 
2) View mode is agendaWeek
3) Sometimes when i have dropped an event, which is not allDay event, it goes immediately to the right (one day is added)

By the way this is my eventDrop handler:

eventDrop: function (event,dayDelta,minuteDelta,allDay,revertFunc) {
                                $("#fields" +  event.id).remove();
                                $("#hiddenFields").append("<div id='fields" + event.id + "'><input type='hidden' name='proposal[" + event.index +"].proposalId' value='" + event.id + "'/>"
                                    + "<input type='hidden' name='proposal[" + event.index +"].startTimestamp' value='" + Math.round(event.start.getTime()) + "'/>"
                                    + "<input type='hidden' name='proposal[" + event.index +"].endTimestamp' value='" + Math.round(event.end.getTime()) + "'/>"
                                    + "<input type='hidden' name='proposal[" + event.index +"].allDay' value='" + allDay + "'/></div>");
                                $("#" + event.id).html("<span class='eventTitle' style='padding-top: 2px;'>" + $.fullCalendar.formatDate( event.start, 'yyyy-MM-dd HH:mm') + "</span>");
}
As you can see it does nothing what can affect event itsef. Also eventRender is not responsible for that, because is empty for now.

Regards,
Yuliyan Fasev

Sep 5, 2011
#1 yuliyan....@gmail.com
Pick up an event to the right corner and drag it to the left, but not drop it yet and slowly move the mouse to the next coulum. The event is still in the column to the left, then drop the event and it will be rendered into the column where the mouse was positioned at the end. This effect can appear even if the user drag the event very quick and then he will be surprised.
Sep 6, 2011
Project Member #2 althaus.it
Please provide a working copy with all relevant code/css/js/json online or attached.
Status: Reproducing
Sep 7, 2011
#3 yuliyan....@gmail.com
You dont need it. The problem is related with the calculation of the mouse position by dragging. The event is moved, depending on where you have clicked (at the header middle or some of the header corners), sometimes long after the mouse is entered the next column. 
The unwanted effect of that occurs by droping the event. After drop is done the event moves to the next columnn.


Aug 13, 2013
Project Member #4 adamrs...@gmail.com
A bug related to the miscalculation of the date was fixed in 1.6.3,

but it seems like you don't like the snapping behavior... how far you have to move your mouse to make it snap to the next column.

this is due to limitations with the jQuery UI draggable (the "grid" option). At some point we will switch away from jQuery UI. Keeping this ticket as a note of that.
Summary: Agenda event dragging, snapping to different columns is erratic (was: Problem with eventDrop )
Status: Accepted
Labels: Type-Bug
Jul 22, 2014
Project Member #5 adamrs...@gmail.com
(No comment was entered for this change.)
Labels: milestone-skeleton
Jul 23, 2014
Project Member #6 adamrs...@gmail.com
This is fixed in v2.1 (beta)
http://blog.arshaw.com/1/post/2014/07/fullcalendar-210-beta.html

I would really appreciate if you could verify this. Thanks a lot!
Aug 14, 2014
Project Member #7 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Implemented
Aug 26, 2014
Project Member #8 adamrs...@gmail.com
This issue has been resolved with the official release of v2.1.0:
http://blog.arshaw.com/1/post/2014/08/fullcalendar-210-released.html

Please post any follow-up bug reports or feature requests as separate issues. Thanks.
Status: Released
Sign in to add a comment

Powered by Google Project Hosting