Skip to content
Snippets Groups Projects
Commit c43e435e authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

feat: warning for mobile users on power + network

parent 69458b1c
No related branches found
No related tags found
No related merge requests found
......@@ -436,6 +436,15 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit {
})
return false
}
if(this.constantsService.mobile){
this.modalService.show(ModalUnit,{
initialState: {
title: 'Power and Network Usage warning',
body: this.constantsService.mobileWarning
}
})
}
return true
}
......
......@@ -90,6 +90,8 @@ Unfortunately, your browser does not meet the minimum requirement to run the atl
the atlas viewer requires **webgl2.0**, and the \`EXT_color_buffer_float\` extension enabled
`
public mobileWarning = `It looks like you are on a mobile device. Please note that the atlas viewer is power and network usage intensive.`
get floatingWidgetStartingPos() : [number,number]{
return [400,100]
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment