Update clickHandler.ts (#3917)

Fix left click invalid
This commit is contained in:
jhsy 2023-03-30 18:38:56 +08:00 committed by Dominik Biedebach
parent f3db8e948d
commit 3eb5869c99

View File

@ -11,7 +11,7 @@ export function clickHandler(options: ClickHandlerOptions): Plugin {
key: new PluginKey('handleClickLink'),
props: {
handleClick: (view, pos, event) => {
if (event.button !== 1) {
if (event.button !== 0) {
return false
}