Skip to content

Commit

Permalink
allows accept 10 px from bottom of modal
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwk committed Oct 2, 2023
1 parent 7ee0060 commit 263947c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/tokenize-form/TermsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const TermsModal: React.FC<TermsModalProps> = ({ onConfirm, visible }) => {

const handleScroll = (e: React.UIEvent<HTMLDivElement, UIEvent>) => {
const target = e.target as HTMLDivElement
const bottom = target.scrollHeight - target.scrollTop === target.clientHeight
const bottom = target.scrollHeight - target.scrollTop - target.clientHeight < 10
if (bottom) {
setAcceptEnabled(true)
}
Expand Down

0 comments on commit 263947c

Please sign in to comment.