From bd75bf46eb25d6dced72ca73695233a7c027fdb6 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Fri, 24 Aug 2018 03:56:15 +0200 Subject: [PATCH] fix(picker): tune scrolling speed --- core/src/components/picker-column/picker-column.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/components/picker-column/picker-column.tsx b/core/src/components/picker-column/picker-column.tsx index c28d6aaf5f..bfc45592df 100644 --- a/core/src/components/picker-column/picker-column.tsx +++ b/core/src/components/picker-column/picker-column.tsx @@ -262,7 +262,7 @@ export class PickerColumnCmp { return; } - this.velocity = clamp(-MAX_PICKER_SPEED, detail.velocityY * 17, MAX_PICKER_SPEED); + this.velocity = clamp(-MAX_PICKER_SPEED, detail.velocityY * 23, MAX_PICKER_SPEED); if (this.velocity === 0 && detail.deltaY === 0) { const opt = (detail.event.target as Element).closest('.picker-opt'); if (opt && opt.hasAttribute('opt-index')) { @@ -341,4 +341,4 @@ export class PickerColumnCmp { const PICKER_OPT_SELECTED = 'picker-opt-selected'; const DECELERATION_FRICTION = 0.97; -const MAX_PICKER_SPEED = 60; +const MAX_PICKER_SPEED = 90;