flickboard icon indicating copy to clipboard operation
flickboard copied to clipboard

Option to adjust swipe direction slices for the key aspect ratio

Open nightkr opened this issue 1 year ago • 4 comments

Broken out from #26.

nightkr avatar Feb 10 '24 19:02 nightkr

I think that keeping the aspect ratio when resizing the keyboard would be a good first step to solve the issue explained in #26. Once the aspect ratio is known and constant, measuring the angle of the drag swipe would be much easier.

If that's a reasonable solution for you, I can implement it.

RedToViolet avatar Feb 17 '24 15:02 RedToViolet

Proposed slider. image image image

RedToViolet avatar Feb 17 '24 16:02 RedToViolet

It's not suuper intuitive, but the aspect ratio is actually controlled completely by "key height". Landscape restricts the width to preserve the portrait aspect ratio, and "landscape scale" and "portrait scale" scale both axes 1:1 to preserve the aspect ratio as well.

That said, there's actually an easier way that doesn't touch config at all. Each key can use Modifier.onGloballyPositioned to find out its own size, and calculate the actual aspect ratio from there.

nightkr avatar Feb 17 '24 23:02 nightkr

This issue has been migrated to Codeberg: see https://codeberg.org/natkr/flickboard/issues/29 for any further discussion!

nightkr avatar Dec 23 '24 01:12 nightkr