jQuery FullCalendar working on touch devices - but minor issue with events

前端 未结 2 587
情话喂你
情话喂你 2021-02-06 06:53

http://page-test.co.uk/cal/ - FullCalendar demo

I have set this up which is a basic jQuery FullCalendar setup with the relevant extras to allow support on touch device

2条回答
  •  甜味超标
    2021-02-06 07:02

    Use touch punch for dragging events, add code in eventRender:

    $.support.touch = 'ontouchend' in document;
    
    if ($.support.touch) {  
         $(element).draggable();
    }
    

    for adding touch capabilities to daycells use another touch js file: https://github.com/joshgerdes/jquery.ui.touch and add cell.addTouch() in dayRender

    In a few days i will also have in my calendars (based on Fullcalendar)

    http://codecanyon.net/user/wolberspl/portfolio?ref=wolberspl

提交回复
热议问题