问题描述
我一直在寻找适合平板电脑的活动日历,但没有找到合适的.但是 FullCalendar 是一款最好的 jQuery 日历插件,在桌面和平板电脑上看起来都很棒.
I was looking for a tablet friendly event calendar, but I did not find any suitable ones. But FullCalendar is one best jQuery calendar plugin that looks great on desktop and a tablet.
此日历在台式机上运行良好,但在平板电脑上,我无法根据触摸和滑动来选择事件的开始时间和结束时间.当我这样做时,日历会滚动.有什么解决办法吗?我一直在寻找解决办法.
This calendar works perfectly on a desktop, but when it comes to tablet I am unable to select the start time and end time of an event, based on the touch and swipe. When i do this the calendar gets scrolled. Is there any solution for this? I have been looking around for a solution in vein.
有没有人遇到过这个问题,你解决了吗?请分享您是如何解决它的方法.任何形式的帮助表示赞赏.
Have anyone had this issue and did you solve it? Please share the method how you solved it. Any sort of help is appreciated.
提前致谢.
推荐答案
您是否尝试过包含 Jquery UI Touch Punch一个>?
默认情况下,Jquery UI 不支持触摸事件,因为它没有针对移动设备进行优化.Touch Punch 通过 Jquery UI 拖放功能解决了我的问题,FullCalendar 似乎也使用了这些功能.
By default, Jquery UI doesn't support Touch Events because it wasn't optimized for mobile devices.Touch Punch solved my problems with the Jquery UI Drag&Drop functionalities, which seem to be used by FullCalendar as well.
希望能帮到你!
这篇关于如何让 FullCalendar 在触控设备上工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!