aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorHsuan Lee <hsuan@cobinhood.com>2018-11-13 14:37:26 +0800
committerHsuan Lee <hsuan@cobinhood.com>2018-12-10 18:51:42 +0800
commit5ced27f0c673f51344495cb9f11ba7d78ce8619b (patch)
tree1c9e4480386f691f3d8155eb7c07dab786f32d41 /ui/app
parent563569a1053549dff1b54091c8a9a721eeede816 (diff)
downloaddexon-wallet-5ced27f0c673f51344495cb9f11ba7d78ce8619b.tar.gz
dexon-wallet-5ced27f0c673f51344495cb9f11ba7d78ce8619b.tar.zst
dexon-wallet-5ced27f0c673f51344495cb9f11ba7d78ce8619b.zip
Fix notice scroll detection
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/pages/notice.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/pages/notice.js b/ui/app/components/pages/notice.js
index 4a415287..c0b214a2 100644
--- a/ui/app/components/pages/notice.js
+++ b/ui/app/components/pages/notice.js
@@ -119,7 +119,7 @@ class Notice extends Component {
h('div.markdown', {
onScroll: (e) => {
var object = e.currentTarget
- if (object.offsetHeight + object.scrollTop + 100 >= object.scrollHeight) {
+ if ((object.offsetHeight * 2) + object.scrollTop >= object.scrollHeight) {
this.setState({ disclaimerDisabled: false })
}
},