dail8859 / NotepadNext

A cross-platform, reimplementation of Notepad++
GNU General Public License v3.0
9.24k stars 554 forks source link

Tab bar should be scrollable with horizontal scroll gesture on touchpad/mouse #510

Closed dzek69 closed 3 months ago

dzek69 commented 9 months ago

When I hover the tab bar like that: image

I'd be great to be able to scroll it using touchpad gesture of horizontal scroll or using mouse that has horizontal scroll feature.

Personally I think it'd allow me to find the right tab much faster than the dropdown arrow on the right of the tabs.

Thanks in advance!

dail8859 commented 9 months ago

Again probably something the githubuser0xFFFF/Qt-Advanced-Docking-System would need to implement.

dail8859 commented 9 months ago

https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/607

dail8859 commented 8 months ago

Looks like the maintainer of the library is not willing to address it even though it looks like it was implemented at one time.

There are hooks in the library to override some of the controls so if I have some time, I might try custom controls and implement it that way.

dzek69 commented 8 months ago

It is sad that maintainer does not want this feature. I'd be cool if you could still implement it, but I understand it might be not possible.

dail8859 commented 8 months ago

I took a shot at it yesterday and still no luck. It's odd because CDockAreaTabBar is a QScrollArea which by default should be scrollable. As noted in the issue something else seems to be handling the QWheelEvents and not letting them propagate to the CDockAreaTabBar. There's also a CDockAreaTitleBar in the mix. I'm no Qt expert so I can't really guess as to any good solutions. 🤷

dail8859 commented 3 months ago

Looks like this might have been fixed in https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/654 but I need to pull in latest changes from there and test.

dzek69 commented 3 months ago

Yay, I can't wait! âš¡