Skip to content
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

Buggy window resizing on drag occasionaly #212

Open
juemrami opened this issue Apr 19, 2024 · 4 comments
Open

Buggy window resizing on drag occasionaly #212

juemrami opened this issue Apr 19, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@juemrami
Copy link
Collaborator

juemrami commented Apr 19, 2024

Describe the bug
When attempting to resize the window, right clicking on an edge to intiate a resize will occasionally cause the cursor to jump to a new position on the screen usually making the bulletin board frame alot bigger than intended.

It seems to come and go and ive had no luck reproducing it. I just know if i fiddle around with resizing, after a while the bug will occur.

Screenshots
gif of bug

Does anybody have a reliable way to reproducing this behaviour.

I'd like to update the resize logic to just have it resize from the bottom right corner like blizzard chat frame and other resizable blizz frames.

@juemrami juemrami added the bug Something isn't working label Apr 19, 2024
@Vysci
Copy link
Owner

Vysci commented Apr 23, 2024

Yea I seen this happen a couple times but can't reproduce it either

@juemrami
Copy link
Collaborator Author

Thoughts on moving to using a single resize corner on the bottom right like blizzard does?

example using blizzard chat frame

@Vysci
Copy link
Owner

Vysci commented Apr 25, 2024

Go for it. I tend to avoid UI like the plague unless necessary hence the lack of changes

@juemrami
Copy link
Collaborator Author

juemrami commented Jul 5, 2024

I found this on the wiki:

Multiple textures, positioned one to another, may start "fidgeting" when the ScrollFrame's ScrollChild containing them is resized/moved/scrolled. And "fidgeting" may mean quite serious distortions, with textures shifting up to 3-4 pixels in an unpredictable direction. Speculation here - apparently this happens because ScrollFrames are (seemingly) created by rendering all their content onto a texture in memory, and treating the ScrollFrame's ScrollChild as a mere Texture, taking its contents from the in-memory texture using SetTexCoord. Now when the 0-1 texture coordinates suffer from precision errors, everything starts to shake. Surprisingly, though, text does NOT suffer much. Bottom line - use ScrollFrames for large images or blocks of text, but not for a large number of multi-textured relatively-positioned controls.

(https://warcraft.wiki.gg/wiki/UIOBJECT_ScrollFrame/Archive#Details)

This may be what is happening when resizing the bulletinboard frame. Each scroll element would be shifting by a couple pixels causing large jumps in the window position at times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants