You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using dojox/calendar in a mobile application. There is a calendar dojox/calendar/MobileCalendar widget in day/week mode. The calendar is not editable, the contained items are just clickable to get to a details view. Now, on some (fast) devices (eg Nexus 9) the itemClick event is not firing.
I debugged it and it seems, that Touch.js does not recognize my tap (I tapped very short and precisely) as click. _docEditingTouchMoveHandler marks the event as touchMoved, so it seems that a touchmove event is fired by the browser. The move distance is only a few pixels. My theory is that touchmoved gets called so often, that it is imposisble to release the finger at the same position. Maybe I'm doing something wrong, but the click event gets fired correctly on most of my (older) devices.
this.ctrlCalendar.on('itemClick', function (e)
{
...
});
I managed to get it working by patching _docEditingTouchMoveHandler() in the way, that it checks the distance for a min value before setting touchMoved to true.
The text was updated successfully, but these errors were encountered:
I'm using dojox/calendar in a mobile application. There is a calendar dojox/calendar/MobileCalendar widget in day/week mode. The calendar is not editable, the contained items are just clickable to get to a details view. Now, on some (fast) devices (eg Nexus 9) the itemClick event is not firing.
I debugged it and it seems, that Touch.js does not recognize my tap (I tapped very short and precisely) as click. _docEditingTouchMoveHandler marks the event as touchMoved, so it seems that a touchmove event is fired by the browser. The move distance is only a few pixels. My theory is that touchmoved gets called so often, that it is imposisble to release the finger at the same position. Maybe I'm doing something wrong, but the click event gets fired correctly on most of my (older) devices.
I'm binding itemClick as mentioned in the docs:
this.ctrlCalendar = new MobileCalendar({
store: this.calendarStore,
...
editable: false
}, this.calendarDomId);
this.ctrlCalendar.on('itemClick', function (e)
{
...
});
I managed to get it working by patching _docEditingTouchMoveHandler() in the way, that it checks the distance for a min value before setting touchMoved to true.
The text was updated successfully, but these errors were encountered: