mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 06:04:23 +00:00
fix: prevent middle click paste on linux
This commit is contained in:
@@ -851,6 +851,13 @@ export class TLApp<
|
||||
}
|
||||
|
||||
readonly onPointerUp: TLEvents<S, K>['pointer'] = (info, e) => {
|
||||
if (!this.editingShape && e.button === 1 && this.isIn('move')) {
|
||||
this.selectedTool.transition('idle', { exit: true })
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
return
|
||||
}
|
||||
|
||||
if ('clientX' in e) {
|
||||
this.inputs.onPointerUp(
|
||||
[...this.viewport.getPagePoint([e.clientX, e.clientY]), 0.5],
|
||||
|
||||
Reference in New Issue
Block a user