mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 02:29:33 +01:00
fix(file-viewer): the resize grip only starts on the primary button
This commit is contained in:
1 parent
2cd0d82544
commit
e3c6f9f2c7
2 files changed
+8
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user