nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.04k stars 799 forks source link

[Bug]: scrolling with mouse on Mac-Client #5541

Open ChristophSchl opened 1 year ago

ChristophSchl commented 1 year ago

⚠️ Before submitting, please verify the following: ⚠️

Bug description

Scroll direction is different on Mac client between trackpad and mouse - Trackpad can be used to scroll normally in client's list of synced files. If a mouse is connected to the Mac M1 or M2, the behavior in this list is somewhat chaotic. The scrolling direction changes and entries jump.

Steps to reproduce

Click on the Nextcloud Client in the Mac menu bar with a mouse. Scroll with the wheel of the mouse.

Expected behavior

the same function of the mouse as the trackpad

Which files are affected by this bug

Nextcloud Mac client

Operating system

Mac OS

Which version of the operating system you are running.

Ventura 13.2.1

Package

Appimage

Nextcloud Server version

25.0.3

Nextcloud Desktop Client version

3.7.4

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

Nextcloud Server logs

No response

Additional info

No response

claucambra commented 1 year ago

Hi @ChristophSchl I cannot reproduce with a mouse on my M1 Macbook Air -- does your mouse have any special drivers or sfotware installed? Is there anything special about its scrolling? Does this happen as soon as you launch the client, or after a while of having it open? Thanks!

ChristophSchl commented 1 year ago

The scrolling direction is reversed to the general system. About the control field "natural scrolling" also reverses. The mouse I am testing has a scroll wheel without a special driver.

ChristophSchl commented 1 year ago

I've recorded a short clip to better illustrate the issue. As you can see at the issue is only present when "natural scaling" and inside the task bar. Visible at timecode 0:05. Interestingly, the proper nc settings window doesn't show the same behavior.

I'm using a regular old school wired USB Mouse with a scroll wheel. For each section of the video I am moving my finger towards me on the wheel and then away for me. Halfway through the video I demonstrate that the issue is not present when changing the OS scroll to "regular".

Recorded using version 3.8.0

ChristophSchl commented 1 year ago

same in 3.8.1

luddinho commented 1 year ago

And what is the behavior of the Trackpad/Mouse scrolling direction when using the Finder?

Isn't it the same different behavior? In my case I´m using a Logitech Mouse connected via Unify Dongle to the my Macbook Air M2 and I´m using the "natural scrolling" in the Trackpad settings of the OS.

Either you set the "natural scrolling" for Mouse or Trackpad inside the OS settings, both will be inherit the same setting from each other.

image image

But I have resolved this by setting the Mouse scroll options with the Logitech Driver to "Normal" that overrides the OS settings when using this Mouse.

image

However, I think this sounds like an OS issue that Mouse and Trackpad are not configurable independent on each other.

ChristophSchl commented 1 year ago

No - My problem is that in the view with the synchronised files with a mouse, the scrolling direction of the Nextcloud client is interpreted exactly the other way round. All Mac applications push the content upwards when I use "Natural scroll direction". Only not in the Nextcloud window of the file sync.

In this window, scrolling with a mouse behaves incorrectly: wrong scrolling

In this window, scrolling with a mouse behaves OK: good scrolling