From 3f72ffba89d0289368506c5202adff93fd207509 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Sun, 13 Oct 2019 23:32:09 +0200 Subject: [PATCH] change range filters from non-linear to linear --- app/common/enums.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/app/common/enums.js b/app/common/enums.js index d17ed0f..042121d 100644 --- a/app/common/enums.js +++ b/app/common/enums.js @@ -1,12 +1,10 @@ const PRICE_SLIDER_OPTIONS = { start: [50000, 85000], range: { - min: [0, 1000], - "10%": [20000, 1000], - "35%": [100000, 1000], - "70%": [200000, 10000], - max: [1000000] + min: [0], + max: [300000] }, + step: 1000, connect: true, tooltips: true }; @@ -15,10 +13,10 @@ const PRICE_SLIDER_OPTIONS = { const HOME_SIZE_SLIDER_OPTIONS = { start: [30, 75], range: { - min: [0, 5], - "50%": [100, 10], + min: [0], max: [400] }, + step: 5, connect: true, tooltips: true }; @@ -26,11 +24,10 @@ const HOME_SIZE_SLIDER_OPTIONS = { const GARDEN_SIZE_SLIDER_OPTIONS = { start: [100, 1000], range: { - min: [0, 10], - "40%": [1000, 100], - "80%": [10000, 100], - max: [100000] + min: [0], + max: [10000] }, + step: 100, connect: true, tooltips: true };