-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aspect ratio is broken when iPad is turned from landscape to portrait in full screen mode #51
Comments
jquery - Mobile Safari $(window).height() URL bar discrepancy - Stack Overflow
This fix no longer causes the layer palette to become too long vertically, preventing new layers from being created. When this problem occurs, once you switch from full screen to mini screen and then change to full screen mode again, the problem that occurred will disappear.
For example, if i change the height of the canvas from 950px to 800px like the above code, the aspect ratio of the drawing part of the canvas will change.
Probably, changing the canvas size as shown in the above code can reproduce a very similar phenomenon to the iPad user facing the problem. I fixed what I found and asked an iPad user to check it, but that's about all I can do. |
i don't have an ipad
but,I have a drawing site.
Some users of that site are iPad users.
This is probably an issue that only occurs on iPads or iPhones.
I have the following problem:
At that time, the position of the pen tip of ApplePencil and the coordinates of the line appearing on the screen are greatly misaligned.
I don't have an actual iPad, so it's just a guess, but it's the same behavior as when the specified width and height of the Canvas tag are not set as intended.
Even if the aspect ratio changes, if he send an image to SERVER, he can receive an image that matches the original Canvas aspect ratio.
In other words, the aspect ratio of the data does not change even if there is a problem with the display.
Data is received normally.
Then, the layer palette etc. will become too long vertically and he will not be able to press the new layer button etc.
The position of the palette may be off-screen.
I asked an iPad user to check out the ChickenPaint example site.
The problem only occurs in fullscreen mode.
However, when I use Chrome's developer tools on Windows to emulate an iPad, I don't have this problem.
I need to investigate using a real iPad or other emulator, but I don't have that environment.
However, i can ask the user who reported this issue if the issue has been fixed.
An example of the problem that the vertical length of the vertically long canvas is displayed short.
Turn this iPad from portrait to landscape. From horizontal to vertical. Another example of the problem that when repeatedly turning to landscape, the aspect ratio of the canvas collapses and it becomes longer horizontally.
An example where the layer palette is longer than the screen size of the device, making it impossible to perform operations such as creating new layers.
The version of the device experiencing the issue.
iPadOS version 16.
chrome version 111.0.5563.101
https://paintbbs.sakura.ne.jp/cgi/neosample/support/potiboard.php?res=643
It is written in Japanese.
But there are more sample images than this issue.
The text was updated successfully, but these errors were encountered: