commit f9489627a307c884830e34b854017c2576538cef
parent a87bee07a9f4a225e966e2c30adfd15a846cc3f6
Author: Agastya Chandrakant <me@hanabi.in>
Date: Mon, 18 May 2020 11:02:35 +0530
momentum scrolling
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/comp/autoCompleteText.js b/src/comp/autoCompleteText.js
@@ -48,7 +48,13 @@ function AutoCompleteText({ defaultValue = '', changeValue }) {
/>
<div
id="suggestion-list"
- style={{ maxHeight: '50vh', overflow: 'scroll' }}
+ style={{
+ maxHeight: '50vh',
+ overflow: 'scroll',
+ position: 'fixed',
+ zIndex: 2,
+ WebkitOverflowScrolling: 'touch',
+ }}
>
<h6 aria-level="6">
<ul className="list-group">