mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixed ismobile at map dialog
This commit is contained in:
parent
559d6c8d07
commit
a0296f6332
3 changed files with 8 additions and 9 deletions
|
@ -45,7 +45,7 @@ class Component extends React.Component<Props, State> {
|
|||
};
|
||||
|
||||
openRoute = (_id: string): void => {
|
||||
if (isMobile) this.props.setDialogActive(false);
|
||||
if (isMobile()) this.props.setDialogActive(false);
|
||||
|
||||
pushPath(`/${_id}/${this.props.editing ? 'edit' : ''}`);
|
||||
};
|
||||
|
@ -55,7 +55,7 @@ class Component extends React.Component<Props, State> {
|
|||
const delta = scrollHeight - scrollTop - clientHeight;
|
||||
|
||||
if (
|
||||
delta < 300 &&
|
||||
delta < 500 &&
|
||||
this.props.routes.list.length < this.props.routes.limit &&
|
||||
!this.props.routes.loading
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue