Skip to content

Commit

Permalink
Fix Some Right Click Menu Bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
RealLowMaster committed Feb 2, 2022
1 parent d221e40 commit 24c4133
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions JS/comics.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,17 @@ function onComicClicked(id, thumb, optimize) {

function setComicMenuEvents() {
window.addEventListener('click', closeComicMenu)
document.getElementById('main-body').addEventListener('scroll', closeComicMenu)
window.addEventListener('wheel', closeComicMenu)
window.addEventListener('resize', closeComicMenu)
window.addEventListener('keydown', closeComicMenu)
}

function closeComicMenu() {
document.getElementById('c-c-r-c-p').style.display = 'none'
window.removeEventListener('click', closeComicMenu)
document.getElementById('main-body').removeEventListener('scroll', closeComicMenu)
window.removeEventListener('wheel', closeComicMenu)
window.removeEventListener('resize', closeComicMenu)
window.removeEventListener('keydown', closeComicMenu)
}

function openComicCharacters(comicId) {
Expand Down
2 changes: 1 addition & 1 deletion task.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Add Comic {

Added To Version {
Fix Bug: When renaming still can use hotkeys
Fix Some Right Click Menu Bugs
Merge Collections To Normal Gallery View
Change Slider System and Fix Some Bugs
Make Image Stop Loading System Work Better
Expand All @@ -110,7 +111,6 @@ Tasks => {
Fix Bug: nhentai -> Search -> Otokonoko Heaven Vol. 4 Jump Page
Optimize Comic Image Loading
Optimize and Fix Events
Rebuild Slider
Improve Release-Note
Add Browser-Right Click
Change Tab Remove Activating Next Tab
Expand Down

0 comments on commit 24c4133

Please sign in to comment.