Caldis / Mos

一个用于在 macOS 上平滑你的鼠标滚动效果或单独设置滚动方向的小工具, 让你的滚轮爽如触控板 | A lightweight tool used to smooth scrolling and set scroll direction independently for your mouse on macOS
http://mos.caldis.me
Other
14.28k stars 513 forks source link

Intermittent scroll interruption during scrolling #410

Open ramb6 opened 3 years ago

ramb6 commented 3 years ago

感谢您的反馈, 请在提交前将上方文字删去 | Thanks for your contribution, please delete the text above before submitting


So far this can be reproduced consistently in the messages app. So far the solution has been to disable MOS through exceptions in the MOS preferences.

Scrolling stopping when unintended in native mac os apps such as messages.

Even if adjusting the scroll speed under Mouse preferences in System preferences, the behavior remains consistent and equally unusable.

scrolling stops even when still scrolling physically on the mouse. leads to unintended behavior and reduces usability and functionality.

None.

Logitech is known for G hub software for their mice, however it has low functionality and consistency on mac os, and therefore is not used or installed in this scenario.

hrvstr commented 3 years ago

I think this is a duplicate of my issue #379. (correct me if I'm wrong)

ramb6 commented 3 years ago

Yes, it seems to be. It’s multiple app issue, both system apps 3rd party.

On Jul 2, 2021, at 4:46 AM, hrvstr @.***> wrote:

 I think this is a duplicate of my issue #379. (correct me if I'm wrong)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

pkrayzy commented 2 years ago

I think this is an 'issue' with ScrollPhase. I am not sure if it breaks other things (I haven't noticed anything working unexpectedly since doing so), but setting all the Double values below to 0.0 and rebuilding has seemed to correct this issue for me.

let PhaseValueMapping: [Phase: [PhaseItem: Double]] = [ // 空 Phase.Idle: [PhaseItem.Scroll: 0.0, PhaseItem.Momentum: 0.0], // 手指触碰 Phase.Contact: [PhaseItem.Scroll: 128.0, PhaseItem.Momentum: 0.0], // 跟随滚动 Phase.Tracing: [PhaseItem.Scroll: 2.0, PhaseItem.Momentum: 0.0], // 缓动 Phase.Momentum: [PhaseItem.Scroll: 0.0, PhaseItem.Momentum: 2.0], // 缓动停止 (自动, 如缓动到达临界值) Phase.PauseAuto: [PhaseItem.Scroll: 0.0, PhaseItem.Momentum: 3.0], // 缓动停止 (手动) Phase.PauseManual: [PhaseItem.Scroll: 4.0, PhaseItem.Momentum: 0.0], ]

Desousak commented 2 years ago

After some testing I was able to 'fix' the scrolling by setting PhaseItem.Scroll within Phase.PauseManual to 0.0. So far I haven't noticed any unexpected behaviour.

Here's a build of Mos from the dev branch with the mentioned change made: Mos - Fixed Catalyst Scrolling.zip (or you can build it yourself)

hrvstr commented 2 years ago

After some testing I was able to 'fix' the scrolling by setting PhaseItem.Scroll within Phase.PauseManual to 0.0. So far I haven't noticed any unexpected behaviour.

Here's a build of Mos from the dev branch with the mentioned change made: Mos - Fixed Catalyst Scrolling.zip (or you can build it yourself)

Can confirm. These changes seem to have fixed the issue for me, too. Nice work!

kcstagepro commented 2 years ago

https://github.com/Caldis/Mos/issues/333

i bought a 8gb Mac mini about a month ago - was getting a similar lag issue to #333, even though that seems resolved

so i ordered a pair of 16gb mac mini's one for home one for office - same MX vertical mouse - same mac mini same everything but different display

office machine works fine - home has been giving me lag at the start of some scrolls, much like #333

i think this Mos - Fixed Catalyst Scrolling.zip might have fixed it

Metal-Snake commented 1 year ago

After some testing I was able to 'fix' the scrolling by setting PhaseItem.Scroll within Phase.PauseManual to 0.0. So far I haven't noticed any unexpected behaviour.

Here's a build of Mos from the dev branch with the mentioned change made: Mos - Fixed Catalyst Scrolling.zip (or you can build it yourself)

Seems like this issues got fixed in some other way. I compiled the current source code without your changes and with that build the scrolling issues in Messages are gone, even though PhaseItem.Scroll for Phase.PauseManual is at 4.0.

hrvstr commented 1 year ago

I compiled the current source code without your changes and with that build the scrolling issues in Messages are gone, even though PhaseItem.Scroll for Phase.PauseManual is at 4.0.

Can you share the compiled App? I don't want to install Xcode just to get the latest version.

Metal-Snake commented 1 year ago

Not sure if it will work due to signing stuff and all. But here it is: Mos.zip

hrvstr commented 1 year ago

Thanks, working fine once I allowed it to bypass the Gatekeeper. Scrolling in the Twitter app is really smooth now!