mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-03 21:51:01 -05:00
Disable browser context menu on launcher popover (#1648)
* Disable browser context menu on launcher popover * Allow system context menu on launch search bar * Remove extraneous debug log
This commit is contained in:
@@ -191,7 +191,7 @@ async function UITaskbar(options){
|
||||
}
|
||||
});
|
||||
|
||||
$(popover).on('click', function(e){
|
||||
$(popover).on('click', function(){
|
||||
// close other context menus
|
||||
$(".context-menu").fadeOut(200, function(){
|
||||
$(this).remove();
|
||||
@@ -199,7 +199,13 @@ async function UITaskbar(options){
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('contextmenu taphold', '.start-app', (e) => {
|
||||
$(popover).on('contextmenu taphold', function(e) {
|
||||
if (!e.target.closest('.launch-search')) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('contextmenu taphold', '.start-app', function(e) {
|
||||
if (e.type === 'taphold' && !isMobile.phone && !isMobile.tablet)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user