Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
futahei committed Jul 6, 2022
1 parent 64f2183 commit 9d355be
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/figni-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1287,17 +1287,9 @@ export default class FigniViewerElement extends HTMLElement {
`${Math.ceil(p * 100)}%`
)
})
const hide = () => {
this.addEventListener('load', () => {
this.#hideLoadingPanel()
this.openTipsPanel(TIPS.DRAG)
}
const timer = setInterval(() => {
hide()
clearInterval(timer)
}, 3000)
this.addEventListener('load', () => {
hide()
clearInterval(timer)
})
} else {
this.#loadingPanel.style.display = ''
Expand Down

0 comments on commit 9d355be

Please sign in to comment.