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

Toolbars hiding improvements #318

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

lucav76
Copy link

@lucav76 lucav76 commented Dec 28, 2020

This patch provides two functionalities intended to improve the hiding of the toolbars.

  1. Until now, if the user keeps moving the mouse, the toolsbars where hidden and then shown again. This is not an expected behavior, as in general they should stay out until the user moves the mouse, and the hide. This is achieve with a new method, debounceMulti(), which can keep postponing the requested method call until required.
  2. In addition, there can be cases where there is some external logic that should prevent the toolbars from hiding. My use case is adding a panel next to the right or left arrow; in this case, as long as the mouse is on the panel, I don't want the tollbars (and my panel!) to disappear.

Apart from the patch, please consider this two issues:

  1. This page does not work anymore:
    https://nano.gallery/lic/lic.php

I would like to buy a license very soon, I am just waiting to incorporate a company.
2) jquery.nanogallery2.core.js has mixed line endings (on my computer with my settings, 183 lines end with "\n" while the rest use "\r\n"). This make it annoying to contribute a patch. If you can fix this issue, it would be good.

And thank you for your work: nanogallery is great!

@Kris-B
Copy link
Member

Kris-B commented Dec 29, 2020

@lucav76 many thanks for your PR, it'll be included in the next release.

I'll check the issue with \n and \r\n (I don't know where this comes from...). Thanks for reporting.

The licence page has been replaced since some weeks. The new one is: https://nano.gallery/lic/lic.html
Is there still a link to the old one on the site ?

@lucav76
Copy link
Author

lucav76 commented Dec 30, 2020

Thanks to you. :-)
And yes, https://nanogallery2.nanostudio.org/ still points to the old page

@BillTheGoat
Copy link

Works for me, thanks

@ajmeese7
Copy link

@Kris-B I didn't see this included in the release, are some changes required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants