fullcalendar选择回调未在移动设备中触发

时间:2016-11-16 07:59:25

标签: jquery angularjs fullcalendar ui-calendar

我正在使用fullcalendar版本2.9.1。我将日历呈现为 agendaWeek 。当我点击桌面上的特定时间段时,它会触发选择回调,但是当我点击移动设备时它不是。有什么问题?

     selectable:true,
     select: function(start, end, jsEvent, view) {
      // event is firing this callback
     }

我在角色应用程序中使用 ui.calendar

2 个答案:

答案 0 :(得分:0)

我认为您需要点击并按住以便在移动设备中选择日期/广告位... https://fullcalendar.io/docs/event_ui/longPressDelay/

答案 1 :(得分:0)

好像需要设置点击时间。

longPressDelay: 1

示例

$('#calendar').fullCalendar
  height: 'auto'
  nowIndicator: true
  defaultView: gon.default_view
  header: ''
  selectable: true
  selectHelper: true
  longPressDelay: 1
  selectConstraint:
    start: '00:00'
    end: '24:00'
...