Replies: 3 comments
-
2025-07-27.12-15-51.mp4 |
Beta Was this translation helpful? Give feedback.
-
|
It is not a Linux Mint only issue. Someone faced the same in Fedora. As usual, the Microsoft online support repeat words from their manual and ignore real user concerns. |
Beta Was this translation helpful? Give feedback.
-
|
The main reason I found is that the right-click menu in Linux pops up as soon as the mouse button is pressed. So I used the following script to set the browser's menu to open on a double right-click, which allows mouse gestures to work normally. I haven't found a better method for now. However, this only works on regular web pages where JavaScript has been loaded. It remains ineffective on browser-native settings pages and similar interfaces. // ==UserScript==
// @name 双击右键菜单
// @namespace http://tampermonkey.net/
// @version 2025-07-05
// @description 只有在双击右键时才会显示浏览器原生右键菜单
// @author xiaochen0517
// @match *://*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant none
// ==/UserScript==
(function() {
'use strict';
// 用于记录右键点击的时间戳
let lastRightClick = 0;
const doubleClickSpeed = 300; // 双击判定的时间间隔(毫秒)
// 监听右键点击事件
document.addEventListener('contextmenu', function(event) {
const currentTime = new Date().getTime();
const timeDiff = currentTime - lastRightClick;
// 如果时间间隔小于设定值,认为是双击右键
if (timeDiff < doubleClickSpeed) {
// 双击右键,允许显示原生菜单
lastRightClick = 0; // 重置时间戳
return true;
} else {
// 单击右键,阻止显示原生菜单
event.preventDefault();
lastRightClick = currentTime;
return false;
}
}, true);
})(); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
I'm experiencing dysfunctional mouse gesture functionality in Microsoft Edge on Linux Mint. I believe this is caused by Linux Mint's right-click context menu trigger mechanism.
Edge's mouse gestures require holding the right mouse button and moving the mouse (dragging). However, Linux Mint instantly triggers the native system context menu on right-click down, preventing the drag motion from being registered.
Key Observation:
Through my testing, mouse gestures work correctly in specific Edge contexts where web content natively handles right-clicks (e.g., right-clicking on maps or other elements with built-in right-click actions). This strongly suggests the conflict stems from the system-level context menu behavior.
Requested Solution:
I would like Linux Mint's right-click context menu to trigger upon releasing the right mouse button, not when the button is initially pressed down. This change would allow Edge (and potentially other applications) to correctly detect the right-button drag motion needed for gestures.
Beta Was this translation helpful? Give feedback.
All reactions