Hi there,
I have a grid, each cell has a tile on it. There is one empty cell. And I want to move the tile around the grid.
Each tile is set up as a directive, and i’m able to move it itself. However, i want to move multiple tiles at once.
i used the drag even to enable tile’s dragging
ionic.onGesture('drag', function(e) {
ionic.requestAnimationFrame(function() { doDrag(e) });
}, el);
On every drag, i’m able to detect which other tiles should be drag too. Should I broadcast the “drag” event and listen to it on every tile in order to move multiple tiles at once? Is this a performance penalty if i apply this?