I have a project with a menu which is working well in gideros 2014.10.
I am using GiderosCodingEasy Sprite:show() and Sprite:hide() - as long as Sprite:isHidden() to show/hide some buttons on certain situations.
In Gideros 2015.04.18 the buttons visually hide and show correctly, but they are still responding to touch inputs (which generates a bit of a mess since are overlapping, or "answering" where should be nothing
any idea on what could cause this? )
Thank you
Comments
So what happens if you directly scale sprite to 0, does it still respond to input events? That would eliminate possibility of GiderosCodingEasy messing things up
https://deluxepixel.com
Try running attached project (which is a modified copy of button example with giderosCodingEasy)
On 2014.10 works as expected (hidden or scale = 0 => no response to input),
On 2015.04.18 sprite scaled to 0 still responds to input events.
Could Z axis have a role in this one?
Thank you
it doesn't seem to scale the sensible area below 0.1, at scale 0.01 the sensible area seems to get a weird size (I can tell only because I can click it with mouse - I am not certain of that).
getScale() returns 0.0099999997764826 instead of 0.01 if this could be related..
[edit. no it shouldn't be related, it's the same value I get in 2014.10 ]
I am not sure I have the knowledge to fix it though, but I could always try
https://github.com/gideros/gideros/blob/master/2dsg/Matrices.cpp
Likes: pie
@hgy29 - I don't want to bother, but you seem to understand where and how this could be happening - if you have some time can you please think about a patch or a workaround? I am stuck on 2014.10 due to this bug
Thank you
Likes: pie
I've been able to investigate further, the issue was indeed due to non-invertible matrix. Somehow the lib I used for matrix computation returns identity matrix for non invertible matrices (i.e determinant is near 0). I changed this behavior to adopt previous gideros way of doing, which is actually dividing by 0 and producing invalid matrix.
The fix should be available in next release.