Skip to content

Commit

Permalink
make sure is left button for selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaidong committed Apr 15, 2024
1 parent a28fadf commit b1391dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/selectable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function selectableNodes<T>(base: BaseAreaPlugin<Schemes, T>, core: Selec
} else if (context.type === 'pointermove') {
if (twitch !== null) twitch++
} else if (context.type === 'pointerup') {
if (twitch !== null && twitch < 4) {
if (twitch !== null && twitch < 4 && context.data.event.button !== 2) {
core.unselectAll()
}
twitch = null
Expand Down

0 comments on commit b1391dd

Please sign in to comment.