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

Increase debounce time to make sure controls are resized after the sidebar disappeared #2602

Merged

Conversation

MariusBluem
Copy link
Member

@MariusBluem MariusBluem commented Dec 10, 2016

Follow up of #2365 - Fixes #2346 😉 Still not perfect with Safari, but better than now 😅 It is now jumping back after some ms 😁

Signed-off-by: Marius Blüm marius@lineone.io

@mention-bot
Copy link

@MariusBluem, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nickvergessen, @LukasReschke and @MorrisJobke to be potential reviewers.

@@ -1502,7 +1502,7 @@ function initCore() {

$(window).resize(_.debounce(adjustControlsWidth, 250));

$('body').delegate('#app-content', 'apprendered appresized', _.debounce(adjustControlsWidth, 100));
$('body').delegate('#app-content', 'apprendered appresized', _.debounce(adjustControlsWidth, 500));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well just try what safari needs and use the smallest possible value?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In 50-steps or is 100 enough?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

50 or 10? :P I don't care just make it fast

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me this works with 150 -.- ... looks like a weird race condition. I tried to debug this: first I tried that the adjustControlsWidth is called too early - but this is somehow not the case.

@MariusBluem MariusBluem added 2. developing Work in progress help wanted and removed 3. to review Waiting for reviews labels Dec 10, 2016
@LukasReschke
Copy link
Member

@MariusBluem Can we move that to 12? I'd prefer to consider 11 closed for any non-critical merges.

…debar disappeared

Signed-off-by: Marius Blüm <marius@lineone.io>
@MorrisJobke MorrisJobke force-pushed the resize-the-controls-after-the-sidebar-slided-in branch from f6b1098 to a460acb Compare January 23, 2017 17:49
@MorrisJobke MorrisJobke added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 23, 2017
@MorrisJobke
Copy link
Member

@MariusBluem @LukasReschke @georgehrke Can you give this a try in Safari? (having the gallery installed and open&close the sidebar in files app should result in the gallery switcher icon on the far right)

Thanks

@MorrisJobke
Copy link
Member

@nickvergessen increasing the debounce time helped, but I have no idea why :(

@MorrisJobke
Copy link
Member

@MariusBluem @LukasReschke @georgehrke Can you give this a try in Safari? (having the gallery installed and open&close the sidebar in files app should result in the gallery switcher icon on the far right)

Ping ;)

Copy link
Member

@LukasReschke LukasReschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be okay :)

@LukasReschke LukasReschke merged commit bc2f23a into master Feb 23, 2017
@LukasReschke LukasReschke deleted the resize-the-controls-after-the-sidebar-slided-in branch February 23, 2017 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants