From ec9325586535a0067af78586873349f53dcfdd4c Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 28 Nov 2015 15:55:15 +0800 Subject: scroll without a scroll bar http://stackoverflow.com/questions/25095539/allow-scroll-but-hide-scrollbar --- src/module/Select.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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({ } const topOption = list.children[index]; const to = topOption.offsetTop - select.offsetTop; - scrollTo(select, to, duration); + scrollTo(list, to, duration); }, render() { -- cgit v1.2.3