简体   繁体   English

iPad中Fullcalendar版本2的拖动事件

[英]Drag event for fullcalendar version 2 in ipad

Iam using Fullcalendar - JavaScript Event Calendar (jQuery plugin) in my project. 我在我的项目中使用Fullcalendar-JavaScript事件日历(jQuery插件)。 Everything works fine in desktop. 在桌面上一切正常。 A user can add an event by dragging mouse in agendaweek view and agendaday view . 用户可以通过在“ agendaweek view和“ agendaday view拖动鼠标来添加事件。

How can i add the same functionality in ipad so that on selecting from one point to another i should be able to add an event in my fullcalendar from that time to the selected end time.How can i trigger the same event that works fine while dragging in desktop to the touch devices. 我该如何在ipad中添加相同的功能,以便在从一个点选择到另一个点时,应该能够从该时间到选定的结束时间在我的全日历中添加一个事件。如何在拖动时触发可正常运行的相同事件在桌面上触摸设备。

I used, and it works for moving events (not sure it will work for what you are trying to do) is this: https://github.com/furf/jquery-ui-touch-punch 我曾经用过,它可以用于移动事件(不确定它是否可以用于您要尝试的操作)是这样的: https : //github.com/furf/jquery-ui-touch-punch

then on the eventRender in fullCalendar you need to add $(element).addTouch(); 然后在fullCalendar中的eventRender上,您需要添加$(element).addTouch();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM