Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll snap methods #559

Closed
koron opened this issue Apr 15, 2024 · 3 comments
Closed

Scroll snap methods #559

koron opened this issue Apr 15, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@koron
Copy link
Collaborator

koron commented Apr 15, 2024

Current scroll snap supports only vertical.
This is sufficient for many people, but is a bit inflexible

Problems are:

  • Does not support horizontal scroll snap
  • An extra step to use free scrolling needed

It is not realistic to use the rotation of the trackball to solve these problems.
I tried such an experiment in the past, but it wasn't good.

Idea 1: how about using keys to switch the scroll snapping methods?

There are three mods:

  1. Vertical scroll snap
  2. Horizontal scroll snap
  3. Free scroll

You can switch/toggle between these modes with some keys.
It is necessary to consider whether to keep the current behavior of transitioning to free scrolling
when moving strongly to the opposite side while scroll snapping in one direction.

Idea 2: How about creating new customization points for the scroll snap algorithm?

For those who compile Keyball firmware themselves, we can provide a function with a weak attribute.
By implementing the function, they can replace the existing scroll snap with their own.

related PR: #555

@koron koron added the enhancement New feature or request label Apr 15, 2024
@koron
Copy link
Collaborator Author

koron commented Apr 15, 2024

Japanse Translation/ 日本語粗訳

現在のスクロールスナップには2つの問題がある

  1. 水平にスナップできない
  2. 自由スクロールするのに手間がかかる

この解決にボールの回転を利用するのは、過去の実験からほぼ無理筋だと考えている。
それを踏まえて、この問題を解決するのに個別の2つのアイデアがある。

1つ目はスナップ方法をキーで切り替えること。
トグルかモーメンタリかはわからないが
キーで垂直スナップ、水平スナップ、自由スクロールを切り替えれば良いじゃん、Key & ballなんだから。
この場合、既存の大きく反対方向に動かすとスナップが解除される使用を残すかは要検討。

2つ目はボール回転をスクロールへ割り当ててる関数を、weakにしてオーバーライドできるようにする。
カスタマイズできるひとならそこで自由に書き換えられる。

@koron
Copy link
Collaborator Author

koron commented Apr 15, 2024

I'm implementing on #560

koron added a commit to koron/keyball that referenced this issue Apr 15, 2024
koron added a commit to koron/keyball that referenced this issue Apr 15, 2024
@koron
Copy link
Collaborator Author

koron commented Apr 16, 2024

#560 is merged.

@koron koron closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant