Closed rohitj closed 10 years ago
Is someone could give me pointers as to what might be wrong, I can look at fixing the bug myself and submit a patch.
@rohitj I'm sorry i haven't had time to dedicate to it the problem is very likely to be inside the fit()
method in quintus_ui.js seems it needs to update the touch coordinates when is executed.
What do you mean by the touch coordinates? I thought that the regular grid was used to decide if the touch occurred on the sprite or not. So, perhaps the grid needs to be updated?
@rohitj it doesn't use a grid, because you can place any sprite in any location so the touch boundaries are always the sprite's boundaries
I have a container (with Touch component), say Container1, inside another container, say Container2. Container1 has some initial size (h, w). I resize Container1 based on its content (using the
fit()
method). However, after resizing, touch works on the old size. So, lets say, initiallyContainer1.p.h = Container1.p.w = 100
. And later, it isContainer1.p.h = Container1.p.w = 50
. Then, the touch is still working on the 100x100 area rather than the new 50x50 area.Below is a sample code: