You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a problem when the simulators height in pixels is more than the height of resolution on monitor. At least those that have higher than 1080 pixel height, for example using portrait or retina display. This problem seems to happen for me at least on windows when using LUA simulator.
What happens is that when the resolution is for example 1536x2048, ipad retina resolution and on my monitors I have 1920x1080 resolution and on other monitor and 1600x900 resolution on other, the buttons hitboxes are wrong. From how I thought it would work, it seems that the buttons hitboxes are count from top to down, and they are drawn from bottom to up. Since the whole simulator doesn't fit in screen, it draws the simulator from bottom left corner, and I assume it does the hit box testing from topleft corner downwards. Cannot explain better what I think happens.
There seems to be a problem when the simulators height in pixels is more than the height of resolution on monitor. At least those that have higher than 1080 pixel height, for example using portrait or retina display. This problem seems to happen for me at least on windows when using LUA simulator.
What happens is that when the resolution is for example 1536x2048, ipad retina resolution and on my monitors I have 1920x1080 resolution and on other monitor and 1600x900 resolution on other, the buttons hitboxes are wrong. From how I thought it would work, it seems that the buttons hitboxes are count from top to down, and they are drawn from bottom to up. Since the whole simulator doesn't fit in screen, it draws the simulator from bottom left corner, and I assume it does the hit box testing from topleft corner downwards. Cannot explain better what I think happens.
here is a link to the post I made to the official forums: http://discuss.cocos2d-x.org/t/i-think-there-is-a-bug-in-v3-4-cocos2d-x-when-simulators-height-in-pixels-is-bigger-than-monitors-resolutions-height-when-using-lua-and-simulator-on-windows/19805/2
Also something to note, if you zoom out, as in use smaller output like 50% and then the simulator fits in the screen, this bug doesn't happen.
The text was updated successfully, but these errors were encountered: