-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Resize events consolidation and minor resizer bugs (#2079) #2022
Comments
Comment by peterflynn Just tested the code a bit and the stream of events looks much cleaner now! I'll review the code itself now. |
Comment by peterflynn Done reviewing. Looks pretty solid overall -- thanks for posting the cleanup so fast! |
Comment by peterflynn
Re the min-size issue: your explanation makes sense to me. I don't think we should worry right now about the edge case of min-size increasing after a smaller value is already stored in prefs. Re requesting animation frames in mousemove vs. at the end of doRedraw(): your latest code still requests at the end of each doRedraw() -- was that your intent? I think it's fine, myself... there's virtually no overhead from extra frames between mousemoves because of the newSize check. |
Comment by jbalsas Don't worry! About requesting animation frames, I was just testing different approaches to see if if it could still be improved a little. As you say, with the newSize check, the impact of doRedraw() is minimal, so I decided to leave it as is. Feel free to merge this anytime ;) |
Comment by peterflynn Sounds good to me -- merging |
Issue by jbalsas
Friday Nov 09, 2012 at 19:56 GMT
Originally opened as adobe/brackets#2092
This pull request consolidates the resize events dispatched by
utils/Resizer
following the comments on (#2079).It also fixes some minor resizer bugs such as the one described in #2079 where after dragging the panel shut, it will expand to 10px instead of the original size.
@
peterflynn Let me know if this is closer to what you'd expectjbalsas included the following code: https://github.com/adobe/brackets/pull/2092/commits
The text was updated successfully, but these errors were encountered: