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

Fix image viewer cycling when some previews are hidden #1367

Merged
merged 1 commit into from
Jul 24, 2017

Conversation

astorije
Copy link
Member

To reproduce the bug, on master:

  1. Send a first message with 1 link
  2. Send a second message with 2 links
  3. Collapse the second preview (i.e. the first preview of the second message)
  4. Click on the last thumbnail (i.e. the second preview of the second message)

➡️ The < (Previous image) button does not show up.

Same applies for > (Next image), obviously.

Issue was that the first check (the one for previews on the same message) was only checking for existing previews, not if they were being expanded. So in the scenario above, first check would detect one preview, but the class was never added (as it gets added only when preview is shown), so the cycling button is not shown.

@astorije astorije added the Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors. label Jul 24, 2017
@astorije astorije added this to the 2.4.0 milestone Jul 24, 2017
@astorije astorije requested a review from xPaw July 24, 2017 06:19
@astorije astorije merged commit 8259b09 into master Jul 24, 2017
@astorije astorije deleted the astorije/fix-viewer-cycle branch July 24, 2017 23:21
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
…cycle

Fix image viewer cycling when some previews are hidden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants