Skip to content

Commit c8d251b

Browse files
committed
fix lint 2
1 parent 85cc153 commit c8d251b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ruis/widget/base/touch/flickable.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626

2727
using namespace ruis::touch;
2828

29+
namespace {
30+
constexpr auto friction_coefficient = 0.005;
31+
} // namespace
32+
2933
flickable::flickable(utki::shared_ref<ruis::context> context) :
30-
friction(context.get().units.dots_per_pp() * ruis::real(0.005)) // TODO: magic constant
34+
friction(context.get().units.dots_per_pp() * ruis::real(friction_coefficient))
3135
{}
3236

3337
ruis::event_status flickable::on_mouse_button(const mouse_button_event& event)

0 commit comments

Comments
 (0)