zen-browser / desktop

🌀 Experience tranquillity while browsing the web without people tracking you!
https://zen-browser.app
Mozilla Public License 2.0
17.24k stars 405 forks source link

bug : Zen glance goes to next tab on closing glance instead of previous #2677

Open RealVishy opened 2 hours ago

RealVishy commented 2 hours ago

Captchas

What happened?

When exiting out of the zen glance view, it switches the the tab after, rather than showing the tab opened zen glance within

Expected behaviour: I expect it to revert to the tab i opened zen glance in, rather than switching to the next tab in the list

Reproducible?

Version

1.0.1-a.17

What platform are you seeing the problem on?

Linux

Relevant log output

No response

dosubot[bot] commented 2 hours ago

The behavior you're experiencing, where Zen Glance switches to the next tab instead of returning to the original tab, is due to the logic in the closeGlance method. When onTabClose is true and the current tab is the selected tab, the code advances the selected tab by one, which results in the tab switch you are observing [1].

To continue talking to Dosu, mention @dosu.