Skip to content

Commit

Permalink
Adjust dblclick trigger conditions
Browse files Browse the repository at this point in the history
Undouble-clicking the right or middle mouse button triggers a dblclick event.
  • Loading branch information
Q-hj authored Oct 29, 2024
1 parent e47d548 commit 320f18d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ export class Stage extends Container<Layer> {

let fireDblClick = false;
if (Konva['_' + eventType + 'InDblClickWindow']) {
fireDblClick = true;
if (evt.button === 0) fireDblClick = true;
clearTimeout(this[eventType + 'DblTimeout']);
} else if (!DD.justDragged) {
// don't set inDblClickWindow after dragging
Expand Down

0 comments on commit 320f18d

Please sign in to comment.