input preflet: Fix tap slider limit values + license update

It was previously using spacing which seems to be a problem.
Spacing value is 11 which by the code will end up on 22 and
the default value is 20 making the tap slided to be very
close to the end with the old code and might be different
in case control looks or other external from the preflet UI
changes in the future.

To avoid that issue the limit has been put of a sensible value
of 50 and divided on 11 marks to visually be divided in chunks
of 10% sized regions.

Change-Id: Ief7461474f0f37eb6fa4bdea1ef8004a531328df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9901
Reviewed-by: nephele nephele <[email protected]>
This commit is contained in:
Samuel Rodríguez Pérez
2025-11-24 18:20:39 +00:00
committed by waddlesplash
parent 7b2f4ab767
commit ceb063d041
3 changed files with 7 additions and 4 deletions
@@ -5,6 +5,7 @@
* Authors:
* Preetpal Kaur <[email protected]>
* Pawan Yerramilli <[email protected]>
* Samuel Rodríguez Pérez <[email protected]>
*/
@@ -5,6 +5,7 @@
* Authors:
* Preetpal Kaur <[email protected]>
* Pawan Yerramilli <[email protected]>
* Samuel Rodríguez Pérez <[email protected]>
*/
@@ -470,9 +471,9 @@ TouchpadPrefView::SetupView()
scrollPrefLayout->AddView(scrollPrefRightLayout);
fTapSlider = new BSlider("tap_sens", B_TRANSLATE("Tapping sensitivity"),
new BMessage(TAP_CONTROL_CHANGED), 0, spacing * 2, B_HORIZONTAL);
new BMessage(TAP_CONTROL_CHANGED), 0, 50, B_HORIZONTAL);
fTapSlider->SetHashMarks(B_HASH_MARKS_BOTTOM);
fTapSlider->SetHashMarkCount(7);
fTapSlider->SetHashMarkCount(11);
fTapSlider->SetLimitLabels(B_TRANSLATE("Off"), B_TRANSLATE("High"));
fSpeedSlider = new BSlider("pad_speed", B_TRANSLATE("Trackpad speed"),
@@ -1,9 +1,10 @@
/*
* Copyright 2019, Haiku, Inc.
* Copyright 2019-2025, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Author:
* Authors:
* Preetpal Kaur <[email protected]>
* Samuel Rodríguez Pérez <[email protected]>
*/