gmoledina/GMGridView — Issue #28: entering sorting mode changes position of view to sort in data array even if the actual position in the grid is not changed.
Author: Maverick1st
Created: 2012-01-19 16:39:06+00:00
State: open

Hi Gulam,
I noticed, that your framework seems to change the position of the item you select when you want to sort it, even if you didn't change the position of the item.
It is always added to the end of the array as it seems to me.
I found this out, because i am animation all icons displayed by the grid in an order given by the order in the data array.
When i enter sorting mode for one icon and dont move it but disable sorting mode by lifting my finger up again without moving, the item is animated as last and not in the order it should.
Is this behaviour intended, or is this a bug?
If it is intended, can you give me some hint how i can avoid it?
Of course i could iterate through the whole array everytime before i animate an item and pick the correct item by its tag, but that would be very expensive.
Maybe you can give me some hint how i can do this better.

Greetings
and thanx again for this framework, which already saved me a lot of work. :)

Maverick1st