Commit 8fee2b97 authored by John Lee's avatar John Lee Committed by Commit Bot

WebUI Tab Strip: Increase minimum velocity for tab swiping

This is based off of feedback from UX research suggesting that the
swipe to close tab gesture was too easy to trigger accidentally.

Change-Id: I20ce1602037dea85326288ac565877d2882ddc3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2291231Reviewed-by: default avatardpapad <dpapad@chromium.org>
Commit-Queue: John Lee <johntlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#787845}
parent 713f55ec
......@@ -34,7 +34,7 @@ export const SWIPE_FINISH_THRESHOLD_PX = 200;
* register the set of pointer events as an intended swipe.
* @const {number}
*/
const SWIPE_VELOCITY_THRESHOLD = 0.1;
const SWIPE_VELOCITY_THRESHOLD = 0.2;
export class TabSwiper {
/** @param {!HTMLElement} element */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment