Question

I know its possible to receive a dayClick event on Fullcalendar. But I would like to manage just the double click event. Is this possible?

Was it helpful?

Solution

currently not possible, will be possible when dayRender is developed. Alternately, you could look at this person's patch but can't say how far you'd get with it.

OTHER TIPS

There is a manageable way to handle double clicks in the FullCalendar dayClick event.

The "300" is really just an arbitrary amount of time in milliseconds to determine whether or not the clicks are close enough to call them a double click. If you want them faster or slower you can shrink or increase the number accordingly.

var this_click_time = new Date().getTime();

var time_since_last_click = this_click_time - last_click_time;

last_click_time = this_click_time;

if(time_since_last_click < 300)
{
    // Double Click = true;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top