diff --git a/src/components/structures/FontSlider.js b/src/components/structures/FontSlider.js
index 68173345ff..aa4bfe42f5 100644
--- a/src/components/structures/FontSlider.js
+++ b/src/components/structures/FontSlider.js
@@ -35,6 +35,10 @@ export default class Slider extends React.Component {
};
+ _offset(values, value) {
+ return (value - values[0]) / (values[values.length - 1] - values[0]) * 100;
+ }
+
render() {
const dots = this.props.values.map(v =>