From 4dfdb2b1e925e471de22d1eab89ee4ba77b3f564 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 26 Jan 2017 12:48:19 +0100 Subject: [PATCH] add soliditySlider --- src/ui/SoliditySlider.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/ui/SoliditySlider.js diff --git a/src/ui/SoliditySlider.js b/src/ui/SoliditySlider.js new file mode 100644 index 0000000000..d411e80c7b --- /dev/null +++ b/src/ui/SoliditySlider.js @@ -0,0 +1,15 @@ +'use strict' +var Slider = require('./Slider') +var utils = require('../helpers/util.js') + +class SoliditySlider extends Slider { + constructor (_traceManager, reducedTraceBySourceLocation) { + super(_traceManager) + this.reducedTraceBySourceLocation = reducedTraceBySourceLocation + } + setValue (value) { + super.setValue(utils.findLowerBoundValue(value, this.reducedTraceBySourceLocation)) + } +} + +module.exports = SoliditySlider