desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Closing the second to last tab in a split view opens an unrelated tab

Open LeMoonStar opened this issue 2 years ago • 12 comments

Captchas

  • [X] I have read the instructions.
  • [X] I have searched existing issues and avoided creating duplicates.
  • [X] I am not filing an enhancement request.

What happened?

When in a split view with exactly two tabs, which are separated by other tabs in the tab list, closing one tab causes Zen to display an unrelated tab, instead of the remaining tab. This is unexpected (and annoying) behavior.

!A video showing the described behavior

Reproducible?

  • [X] I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

1.0.1-a.9

What platform are you seeing the problem on?

Linux, Windows

Relevant log output

No response

LeMoonStar avatar Oct 15 '24 17:10 LeMoonStar

Have you tried upgrading to the latest version. on 1.0.1-a.8 and 1.0.1-a.10 I'm unable to reproduce. I'm running Manjaro and have zen installed via Flatpack.

joshuaanthonydeleon avatar Oct 18 '24 03:10 joshuaanthonydeleon

Have you tried upgrading to the latest version. on 1.0.1-a.8 and 1.0.1-a.10 I'm unable to reproduce. I'm running Manjaro and have zen installed via Flatpack.

I do have the same issue with the latest version 1.0.1-a.10 - as AppImage and Flatpak. Even with the latest twilight, this issue occurs.

Do note that the tabs have to be separated by other tabs in the tab bar! If they are next to each other, everything works as expected.

LeMoonStar avatar Oct 18 '24 05:10 LeMoonStar

Hey just testing this on windows 1.0.1-a.14 and it works fine and switches to the remaining tab from the split. Could you try again with the latest version of Zen?

salamijason avatar Oct 29 '24 18:10 salamijason

Hey just testing this on windows 1.0.1-a.14 and it works fine and switches to the remaining tab from the split. Could you try again with the latest version of Zen? @salamijason

Yes, the issue still persists even on the newest twilight branch. Keep in mind the tabs have to be separated with other tabs that are not part of the split group to reproduce, see the attached video.

https://github.com/user-attachments/assets/93fa0604-32cd-4e82-8653-0d75e0bf5549

LeMoonStar avatar Oct 31 '24 20:10 LeMoonStar

Happens to me too, but it depends on the tab currently selected.

  • If, as in the video, we have clicked on the second tab, we are currently in it, and we close it, we move to the middle tab outside the split.
  • If we are operating in the first tab and we close the second one, the first one maximizes as it would be expected.

Every time a tab closes, the next one replaces it (unless we delete the last tab). When both split tabs are adjacent, the previous behavior aligns with the expected.

The thing is, is this unintended behavior by the developers or unexpected by the user?

Because it seems that, at the moment, the tab management operates independently, or treating them individually, and split only have a visual or render impact?

krisMG21 avatar Nov 03 '24 00:11 krisMG21

Hmm okay, I tried it again while having the second tab active and I was able to reproduce the issue. What @krisMG21 said is right too, I have no idea whether this is intentional or not. I'll ask around and get back to ya'll.

salamijason avatar Nov 03 '24 09:11 salamijason

Hmm okay, I tried it again while having the second tab active and I was able to reproduce the issue. What @krisMG21 said is right too, I have no idea whether this is intentional or not. I'll ask around and get back to ya'll.

This is the default behaviour of Firefox: It switches to the tab in front or after the tab in the tab list if the current tab is being closed. This is not intentional, but simply unhandled behaviour. It would be much more user friendly to switch to the next tab part of the current split view instead.

LeMoonStar avatar Nov 03 '24 10:11 LeMoonStar

This is the default behaviour of Firefox: It switches to the tab in front or after the tab in the tab list if the current tab is being closed. This is not intentional, but simply unhandled behaviour. It would be much more user friendly to switch to the next tab part of the current split view instead.

Makes sense, i dont mind it much tho. Either way, it's a change that should be made first by Firefox right? Or can be reworked by Zen?

krisMG21 avatar Nov 03 '24 10:11 krisMG21

This is the default behaviour of Firefox: It switches to the tab in front or after the tab in the tab list if the current tab is being closed. This is not intentional, but simply unhandled behaviour. It would be much more user friendly to switch to the next tab part of the current split view instead.

Makes sense, i dont mind it much tho. Either way, it's a change that should be made first by Firefox right? Or can be reworked by Zen?

Firefox can't change and has no reason to change it, as it has no split views. It is a zen-exclusive problem.

LeMoonStar avatar Nov 03 '24 11:11 LeMoonStar

Firefox can't change and has no reason to change it, as it has no split views. It is a zen-exclusive problem.

Oh shoot that's right XDDD my bad my bad.

krisMG21 avatar Nov 03 '24 11:11 krisMG21

Hi, @LeMoonStar. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Closing a tab in a split view setup results in an unrelated tab being displayed.
  • The issue affects both Linux and Windows platforms and persists across different versions.
  • Users krisMG21 and salamijason confirm the issue and discuss its nature.
  • The behavior differs from Firefox due to Zen's unique split view feature.
  • You suggest switching to the next tab within the current split view for better user experience.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the desktop repository by commenting here.
  • If no further updates are provided, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Dec 04 '24 16:12 dosubot[bot]