| 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 |
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
Sep 6, 2011
Please provide a working copy with all relevant code/css/js/json online or attached.
Status:
Reproducing
Sep 7, 2011
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
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
(No comment was entered for this change.)
Labels:
milestone-skeleton
Jul 23, 2014
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
(No comment was entered for this change.)
Status:
Implemented
Aug 26, 2014
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 |