fix(file-viewer): the resize grip only starts on the primary button

This commit is contained in:
Devvyn committed 2026-10-20 11:30:38 +08:00
1 parent 2cd0d82544
commit e3c6f9f2c7
2 files changed
+8 -2

No files matched your search

+1
View File
@@ -4666,6 +4666,7 @@ Object.assign(CodemanApp.prototype, {
const win = grip?.parentElement;
if (!grip || !win) return;
grip.addEventListener('pointerdown', (ev) => {
if (ev.button !== 0) return; // a right-click on the grip must not start a resize
ev.preventDefault();
const startX = ev.clientX;
const startY = ev.clientY;