desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Win11] Compact sidebar stutters on open

Open devils-shadow opened this issue 1 year ago • 22 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?

I have this strange issue where when I move my mouse to the edge of my screen to reveal the sidebar, if I keep my mouse at the edge of the screen while the sidebar opens, the sidebar opening animation stutters/hitches at the end of the opening animation. I've tried to record this behavior with a screen recorder, but... its not actually visible on the screen recording 🤔

Worth noting that if I move my mouse to the edge of the screen then move the mouse away as the sidebar opens, the animation stutter doesn't occur. This also doesn't occur if i don't have the browser fullscreen'd.

Here's a slow-motion video of the issue happening: https://github.com/user-attachments/assets/48654b93-c2fd-46d0-8bbe-5c6d56ae50fb Backup Vid link: https://streamable.com/lvd0cb

My PC's Specs: Image

Installed Zen Mods: Image

Installed Extensions: Image

Reproducible?

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

Version

1.7.6b

What platform are you seeing the problem on?

Windows

Relevant log output if applicable


devils-shadow avatar Feb 08 '25 12:02 devils-shadow

I had this issue on pop-os with nvidia graphics too... it then went away when I messed with the 'enable gpu acceleration' option to force it on, and then came back again. It's not super noticeable either though so I kinda just dealt with it. For me it also happens in full screen but I assume that's just cause Linux does things differently? I've also seen it happen for the closing animation.

vervamond avatar Feb 08 '25 12:02 vervamond

one thing to note, the video's bugged.

devc3tt avatar Feb 08 '25 12:02 devc3tt

one thing to note, the video's bugged.

Aw for f.. sake. It worked fine a minute ago. I'll reupload it to streamable, seems github hates videos.

devils-shadow avatar Feb 08 '25 12:02 devils-shadow

one thing to note, the video's bugged.

Aw for f.. sake. It worked fine a minute ago. I'll reupload it to streamable, seems github hates videos.

Done, hope github doesn't yeet the vid again. Added backup streamable link as well.

https://github.com/zen-browser/desktop/issues/5116#issuecomment-2645340800

Also, I tried disabling HW acceleration and this somewhat mitigates the issue, in the sense that the sidebar no longer stutters every single time (just sometimes), but everything now runs at 30fps or something and feels dreadfully slow.

Edit: ~~video not playing seems to be a Zen Browser issue. The video plays fine in Chrome.~~ nevermind, was due to HW acceleration being off.

devils-shadow avatar Feb 08 '25 12:02 devils-shadow

Yeah HW accel. seems kinda glitched in general, at least on Linux. I'm honestly not sure why. Nvidia? Probably. (I know OP uses Windows, just saying my own experience)

vervamond avatar Feb 08 '25 12:02 vervamond

I'd understand if this stutter happened randomly (blame GPU drivers, hardware acceleration). But it happens 100% consistently if the mouse isn't moved from the edge of the screen as the sidebar opens. And it 100% doesn't happen if the mouse is moved while the sidebar opens.

It's almost as if a 2nd sidebar trigger briefly occurs which causes that stutter.

devils-shadow avatar Feb 08 '25 12:02 devils-shadow

Hm, yeah I have more random occurrences but honestly I can't be sure why exactly it's happening for me. Possibly the same issue as you, possibly weird nvidia Linux.

vervamond avatar Feb 08 '25 12:02 vervamond

I have the same issue on Windows 11 with Nvidia GPU. It is so annoying! https://github.com/user-attachments/assets/5b7321bd-dcaa-4901-9f78-8beffd226148

artsiom-voitas avatar Feb 09 '25 17:02 artsiom-voitas

new update (1.8.1b), issue's still there.

devils-shadow avatar Feb 25 '25 10:02 devils-shadow

Can confirm, the issue still exists. Windows 11, with/without mods, extensions, tested in private windows, V.1.8.1b. Edit with specs:

  • GPU: Nvidia RTX 3060
  • CPU: AMD Ryzen 7 5600H
  • RAM: 16GB Not sure if it's relevant, but eh.🤷🏻‍♂️

farhan-va avatar Feb 25 '25 11:02 farhan-va

Would be helpful if we could get some reports in from people with AMD GPUs because so far all the reports here mention nvidia graphics cards.

devils-shadow avatar Feb 25 '25 13:02 devils-shadow

This started for me in 1.8.1b. It did not happen at all in the previous version. (Note: I have only started testing compact mode recently so I can't speak to versions further back.)

This does NOT occur when the sidebar is the narrow/slim view only for the wide/expanded view.

This is on Win 10, Intel 6700HQ, iGPU.

MaxHart828 avatar Feb 25 '25 20:02 MaxHart828

This has been an issue for me ever since the 1.7.X Twilight versions... BOTH on Windows 11 and Linux, too. Nvidia GPU if that matters... part of me thinks the issue stems from the sidebar being offset a few pixels away from the very edge, causing the cursor to focus behind the sidebar itself, and then causing this stutter/constant retriggering.

Lu9-ST avatar Feb 26 '25 05:02 Lu9-ST

As mentioned before, it happens only when mouse on the edge of the screen. If you slide the cursor into sidebar while it opens, the Sidebar animation is correct. And in my case, if tabs on the right, it also works correctly, without any problems @mauro-balades your help with this issue will be great! Thank you in advance https://github.com/user-attachments/assets/6b43a41b-d2b8-4771-bdfe-182681626f37

artsiom-voitas avatar Feb 26 '25 17:02 artsiom-voitas

Yeah sorry, lots of issues right now to take over

mr-cheffy avatar Feb 26 '25 18:02 mr-cheffy

Yeah sorry, lots of issues right now to take over

It's fine chief! You are the best!

:root[zen-compact-mode='true']:not([customizing]):not([inDOMFullscreen='true']) {
        #navigator-toolbox[zen-has-hover],
        #navigator-toolbox[zen-user-show],
        #navigator-toolbox[flash-popup],
        #navigator-toolbox[has-popup-menu],
        #navigator-toolbox[movingtab],
        #navigator-toolbox:has(.tabbrowser-tab:active),
        &[zen-renaming-tab='true'] #navigator-toolbox,
        #navigator-toolbox:has(
        *:is([panelopen='true'], [open='true'], #urlbar:not([zen-floating-urlbar='true']):focus-within):not(tab):not(.zen-compact-mode-ignore)
      ) {
                &:not([supress-primary-adjustment='true']) {
                    left: -2px !important;
        }
    }
}

It looks like changing zen-compact-mode.css on line 272 property left: -1px to -2 px fixed the issue for me. Above is code for userChrome.css file, temporary fix for the issue

artsiom-voitas avatar Feb 26 '25 18:02 artsiom-voitas

Yeah sorry, lots of issues right now to take over

It's fine chief! You are the best!

:root[zen-compact-mode='true']:not([customizing]):not([inDOMFullscreen='true']) {
        #navigator-toolbox[zen-has-hover],
        #navigator-toolbox[zen-user-show],
        #navigator-toolbox[flash-popup],
        #navigator-toolbox[has-popup-menu],
        #navigator-toolbox[movingtab],
        #navigator-toolbox:has(.tabbrowser-tab:active),
        &[zen-renaming-tab='true'] #navigator-toolbox,
        #navigator-toolbox:has(
        *:is([panelopen='true'], [open='true'], #urlbar:not([zen-floating-urlbar='true']):focus-within):not(tab):not(.zen-compact-mode-ignore)
      ) {
                &:not([supress-primary-adjustment='true']) {
                    left: -2px !important;
        }
    }
}

It looks like changing zen-compact-mode.css on line 272 property left: -1px to -2 px fixed the issue for me. Above is code for userChrome.css file, temporary fix for the issue

With this userChrome.css applied, it now looks great for me! If somebody can test it too, will be great! https://github.com/user-attachments/assets/d29c5334-c933-4fa2-b35e-7c633b0ca2eb

artsiom-voitas avatar Feb 26 '25 18:02 artsiom-voitas

Yeah sorry, lots of issues right now to take over

It's fine chief! You are the best!

:root[zen-compact-mode='true']:not([customizing]):not([inDOMFullscreen='true']) {
        #navigator-toolbox[zen-has-hover],
        #navigator-toolbox[zen-user-show],
        #navigator-toolbox[flash-popup],
        #navigator-toolbox[has-popup-menu],
        #navigator-toolbox[movingtab],
        #navigator-toolbox:has(.tabbrowser-tab:active),
        &[zen-renaming-tab='true'] #navigator-toolbox,
        #navigator-toolbox:has(
        *:is([panelopen='true'], [open='true'], #urlbar:not([zen-floating-urlbar='true']):focus-within):not(tab):not(.zen-compact-mode-ignore)
      ) {
                &:not([supress-primary-adjustment='true']) {
                    left: -2px !important;
        }
    }
}

It looks like changing zen-compact-mode.css on line 272 property left: -1px to -2 px fixed the issue for me. Above is code for userChrome.css file, temporary fix for the issue

With this userChrome.css applied, it now looks great for me! If somebody can test it too, will be great! https://github.com/user-attachments/assets/d29c5334-c933-4fa2-b35e-7c633b0ca2eb

I would but how? Where is this file located?

MaxHart828 avatar Feb 26 '25 22:02 MaxHart828

Yeah sorry, lots of issues right now to take over

It's fine chief! You are the best!

:root[zen-compact-mode='true']:not([customizing]):not([inDOMFullscreen='true']) {
        #navigator-toolbox[zen-has-hover],
        #navigator-toolbox[zen-user-show],
        #navigator-toolbox[flash-popup],
        #navigator-toolbox[has-popup-menu],
        #navigator-toolbox[movingtab],
        #navigator-toolbox:has(.tabbrowser-tab:active),
        &[zen-renaming-tab='true'] #navigator-toolbox,
        #navigator-toolbox:has(
        *:is([panelopen='true'], [open='true'], #urlbar:not([zen-floating-urlbar='true']):focus-within):not(tab):not(.zen-compact-mode-ignore)
      ) {
                &:not([supress-primary-adjustment='true']) {
                    left: -2px !important;
        }
    }
}

It looks like changing zen-compact-mode.css on line 272 property left: -1px to -2 px fixed the issue for me. Above is code for userChrome.css file, temporary fix for the issue

With this userChrome.css applied, it now looks great for me! If somebody can test it too, will be great! https://github.com/user-attachments/assets/d29c5334-c933-4fa2-b35e-7c633b0ca2eb

I would but how? Where is this file located?

Docs

artsiom-voitas avatar Feb 27 '25 06:02 artsiom-voitas

quite a simple fix, and it works! perhaps they could even just implement it, if this is all it takes to fix the issue. unless they are able to fix it in a way that doesn't involve CSS, if that's the case.

Lu9-ST avatar Feb 27 '25 18:02 Lu9-ST