The-Fox--Only-Better icon indicating copy to clipboard operation
The-Fox--Only-Better copied to clipboard

Hide when cursor is in another window.

Open ghost opened this issue 9 years ago • 1 comments

I have a vertical setup for my monitors, so when going from bottom to top, the bar stays active on the bottom window. It should be hidden automatically. Or hide after "X" amount of time when the cursor is not inside the window.

ghost avatar Oct 02 '15 21:10 ghost

Unfortunately when the cursor is outside of the browser window, it's outside of my control. The add-on can only react to this situation when the cursor leaves the window, but it just so happens that the empty area next to the tabs is also considered "outside the window". It's already an ugly hack to determine when the cursor gets there so that it shows the toolbars. And it's precisely because of that hack that it's very difficult to hide the toolbars when moving the cursor up out of the window like you want.

I have tried to implement this behavior before, but it's just impossible. For instance, if I make the toolbars hide when the cursor goes up and leaves the window (just as it does when it leaves down or sideways) then the toolbars would never appear when you moved it to anywhere that is "empty" near the tabs.

On the other hand, it also can't hide on a timer when the cursor leaves, because that would require constant active timers and listeners and mouse trackers to make this work. It's just not efficient.

Unless/until I find a way to do this properly, in a way that doesn't take an excessive toll on the browser process at least, I'm afraid there's not much I can do.

Quicksaver avatar Oct 02 '15 21:10 Quicksaver