跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 分享一个罗技 MX 系列鼠标(Master、Anywehre)某些场景下回滚的软件解决方案

发表于

⚠️ 该方案仅适用 Mac 平台,且需要安装 hammerspoon

该脚本主要是为了解决无极滚轮容易回滚的问题,我的测试鼠标为罗技 Anywhere3s ,鼠标滚轮为 magspeed 电磁滚轮,Anywhere 2 代物理结构的滚轮也应该支持,其他系列,例如:Master 系列也应该支持

回滚场景

  1. 开启无极滚动,或者 Logi Options+ 中开启了平滑滚动
  2. 即使使用棘轮模式(刻度模式),当手指放到滚轮上,也有概率会触发回滚

原因分析

  • 由于开启了平滑滚动,滚轮任何细粒度的滚动都会触发事件,
  • 这种情况下棘轮单纯是为了手感,棘轮刻度的粒度并不严格对应事件粒度,
  • 很可能棘轮刻度感还没触发,事件已经发射了好几次

处理方案

  • 简单来说,当鼠标滚轮事件触发时,判断一下滚动方向是不是发生了变化,
  • 只有在同一个方向上滚动到一定次数后,才认为是真的发生了预期滚动

脚本地址如下:

https://github.com/xiaojundebug/hammerspoon-config/blob/main/scripts/magspeed-smooth-scrolling-fix.lua

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.