J'ai réussi à corriger l'édition de cellules avec une édition très petite à la bibliothèque:
J'ai simplement ajouté l'événement tactile touchstart au double gestionnaire de clic - je vais faire mon propre gestionnaire tactile qui est séparé à un moment donné quand j'ai le temps que le double clic peut faire plus que modifier les cellules.
code:
RenderedCell.prototype.addCellDoubleClickedHandler = function() {
var that = this;
var colDef = this.column.colDef;
this.vGridCell.addEventListener('dblclick', function (event) {
// always dispatch event to eventService
var agEvent = that.createEvent(event, this);
that.eventService.dispatchEvent(grid.Events.EVENT_CELL_DOUBLE_CLICKED, agEvent);
// check if colDef also wants to handle event
if (typeof colDef.onCellDoubleClicked === 'function') {
colDef.onCellDoubleClicked(agEvent);
}
if (!that.gridOptionsWrapper.isSingleClickEdit() && that.isCellEditable()) {
that.startEditing();
}
});
//TOUCH HANDLER
this.vGridCell.addEventListener('touchstart', function (event) {
// always dispatch event to eventService
var agEvent = that.createEvent(event, this);
that.eventService.dispatchEvent(grid.Events.EVENT_CELL_DOUBLE_CLICKED, agEvent);
// check if colDef also wants to handle event
if (typeof colDef.onCellDoubleClicked === 'function') {
colDef.onCellDoubleClicked(agEvent);
}
if (!that.gridOptionsWrapper.isSingleClickEdit() && that.isCellEditable()) {
that.startEditing();
}
});
};
Je vais regarder le glisser-déposer trop fonctionnalité bien que ce soit moins d'une priorité pour moi en ce moment. Semble AG Grids a écrit leurs propres fonctionnalités pour cela, donc je suis sûr qu'en utilisant les événements tactiles, cela peut être reproduit pour travailler au toucher.
Testé et fonctionnant dans le navigateur GOOD sur l'iPhone 6