]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
faster scroll
authorafc163 <afc163@gmail.com>
Sat, 28 Nov 2015 07:48:46 +0000 (15:48 +0800)
committerafc163 <afc163@gmail.com>
Sat, 28 Nov 2015 07:48:46 +0000 (15:48 +0800)
src/module/Select.jsx

index 570ff371c3f457e2a2dd5b2057a2c6d433101823..b386d071d6def84e2675e75b8a4a87dcc0b20fc5 100644 (file)
@@ -35,7 +35,7 @@ const Select = React.createClass({
 
   componentDidUpdate() {
     // smooth scroll to selected option
-    this.scrollToSelected(200);
+    this.scrollToSelected(120);
   },
 
   onSelect(value) {