aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2015-11-28 15:55:15 +0800
committerafc163 <afc163@gmail.com>2015-11-28 15:59:08 +0800
commitec9325586535a0067af78586873349f53dcfdd4c (patch)
tree0e1026cdc156bed872c500c8612908d7fdf3b769 /src
parenta9fbba23bb3eca7275602bf27183cdb3e34071cf (diff)
downloadtime-picker-ec9325586535a0067af78586873349f53dcfdd4c.tar.gz
time-picker-ec9325586535a0067af78586873349f53dcfdd4c.tar.zst
time-picker-ec9325586535a0067af78586873349f53dcfdd4c.zip
scroll without a scroll bar
http://stackoverflow.com/questions/25095539/allow-scroll-but-hide-scrollbar
Diffstat (limited to 'src')
-rw-r--r--src/module/Select.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module/Select.jsx b/src/module/Select.jsx
index b386d07..119e59e 100644
--- a/src/module/Select.jsx
+++ b/src/module/Select.jsx
@@ -64,7 +64,7 @@ const Select = React.createClass({
64 } 64 }
65 const topOption = list.children[index]; 65 const topOption = list.children[index];
66 const to = topOption.offsetTop - select.offsetTop; 66 const to = topOption.offsetTop - select.offsetTop;
67 scrollTo(select, to, duration); 67 scrollTo(list, to, duration);
68 }, 68 },
69 69
70 render() { 70 render() {