Skip to content

Commit

Permalink
fix dblclick
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Jul 22, 2024
1 parent 25cdcc4 commit 260a000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Old Twitter Layout (2024)",
"description": "__MSG_ext_description__",
"version": "1.8.7",
"version": "1.8.7.1",
"manifest_version": 3,
"homepage_url": "https://github.com/dimdenGD/OldTwitter",
"background": {
Expand Down
3 changes: 1 addition & 2 deletions scripts/injection.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,7 @@ let page = realPath === "" ? pages[0] : pages.find(p => (!p.exclude || !p.exclud
if(e.target.className !== 'viewer-canvas') return;
if(Date.now() - touchStartTime < 150) {
let viewerContainer = e.target.closest('.viewer-container');
viewerContainer.querySelector('.viewer-close').click();
console.log('close');
setTimeout(() => viewerContainer.querySelector('.viewer-close').click(), 100);
}
}, { passive: false });

Expand Down

0 comments on commit 260a000

Please sign in to comment.