rxi / microui

A tiny immediate-mode UI library
MIT License
3.42k stars 240 forks source link

Make resizing action correct #6

Closed chirsz-ever closed 5 years ago

chirsz-ever commented 5 years ago

Let me explain the point. The resize opertion in demo is like that: gif0 If the cursor's position may make the window's size is too small, the size won't shrink more. That's all right. But when the cursor move backward the window's size enlarge directly rather than keep its size until the cursor move out of the origin press position, which windows in other GUI platforms perform. gif1 I revise some code and this is the effect: gif2 the modifications does not destroy the library's lightweight and fixed-sized memory region.

chirsz-ever commented 5 years ago

I feel sorry that I ignored the version update on the source repository... fortunately this does not introduce merge conflicts, you could just choose "rebase and merge".

chirsz-ever commented 5 years ago

I'm really sorry that I would close this PR, because I found there would be problems with my code when more than one mu_Context works on the same process. I am really very, very sorry of disturbing you. I will fix the problem soon.