mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Sidebar item double-click should not close open editors.
This commit is contained in:
@@ -994,7 +994,10 @@ function handleSidebarClick(evt) {
|
||||
document.getElementById('main').lastElementChild.scrollToItem(evt.target.getAttribute('data-index'));
|
||||
|
||||
if (evt.type == 'dblclick') {
|
||||
document.getElementById(evt.target.getAttribute('data-id')).onShowEditor();
|
||||
var card = document.getElementById(evt.target.getAttribute('data-id'));
|
||||
if (!card.classList.contains('flip')) {
|
||||
document.getElementById(evt.target.getAttribute('data-id')).onShowEditor();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user