aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHsuan Lee <hsuan@cobinhood.com>2018-11-13 14:52:02 +0800
committerHsuan Lee <hsuan@cobinhood.com>2018-12-10 18:51:51 +0800
commit9819dbe5463a4216d42cb649e215998e80190138 (patch)
tree1c1f61061cd569bc95ad776fcb3551adeca98938
parent5ced27f0c673f51344495cb9f11ba7d78ce8619b (diff)
downloaddexon-wallet-9819dbe5463a4216d42cb649e215998e80190138.tar.gz
dexon-wallet-9819dbe5463a4216d42cb649e215998e80190138.tar.zst
dexon-wallet-9819dbe5463a4216d42cb649e215998e80190138.zip
1.0.10
-rw-r--r--mascara/src/app/first-time/notice-screen.js7
-rw-r--r--package.json2
2 files changed, 4 insertions, 5 deletions
diff --git a/mascara/src/app/first-time/notice-screen.js b/mascara/src/app/first-time/notice-screen.js
index 806ac15f..482b2875 100644
--- a/mascara/src/app/first-time/notice-screen.js
+++ b/mascara/src/app/first-time/notice-screen.js
@@ -4,7 +4,6 @@ import Markdown from 'react-markdown'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { compose } from 'recompose'
-import debounce from 'lodash.debounce'
import { markNoticeRead } from '../../../../ui/app/actions'
import { INITIALIZE_BACKUP_PHRASE_ROUTE } from '../../../../ui/app/routes'
import LoadingScreen from './loading-screen'
@@ -57,15 +56,15 @@ class NoticeScreen extends Component {
})
}
- onScroll = debounce(() => {
+ onScroll = () => {
if (this.state.atBottom) return
const target = document.querySelector('.tou__body')
const {scrollTop, offsetHeight, scrollHeight} = target
- const atBottom = scrollTop + offsetHeight >= scrollHeight
+ const atBottom = scrollTop + offsetHeight + 100 >= scrollHeight
this.setState({atBottom: atBottom})
- }, 25)
+ }
render () {
const {
diff --git a/package.json b/package.json
index 6103b4d6..29b69a29 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "dekusan",
- "version": "1.0.9",
+ "version": "1.0.10",
"public": false,
"private": true,
"scripts": {