mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
ext button to left, stack buttons on mobile
This commit is contained in:
@ -8023,14 +8023,14 @@ jQuery(async function () {
|
||||
return menu.is(':hover') || button.is(':hover');
|
||||
}
|
||||
|
||||
button.on('mouseenter click', function () { showMenu(); });
|
||||
button.on('mouseleave', function () {
|
||||
button.on('click', function () { showMenu(); });
|
||||
button.on('blur', function () {
|
||||
//delay to prevent menu hiding when mouse leaves button into menu
|
||||
setTimeout(() => {
|
||||
if (!isMouseOverButtonOrMenu()) { hideMenu(); }
|
||||
}, 100)
|
||||
});
|
||||
menu.on('mouseleave', function () {
|
||||
menu.on('blur', function () {
|
||||
//delay to prevent menu hide when mouseleaves menu into button
|
||||
setTimeout(() => {
|
||||
if (!isMouseOverButtonOrMenu()) { hideMenu(); }
|
||||
|
Reference in New Issue
Block a user