Skip to content

Commit

Permalink
Merge pull request #446 from ianhi/dblclick
Browse files Browse the repository at this point in the history
support double click events
  • Loading branch information
ianhi authored Mar 31, 2022
2 parents 5a0bd6f + 1e110c9 commit 01511c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"ts-jest": "^26.0.0",
"ts-loader": "^8.0.0",
"typescript": "~4.1.3",
"webpack": "^5.0.0",
"webpack": "^5.61.0",
"webpack-cli": "^4.0.0"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/mpl_widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ export class MPLCanvasView extends DOMWidgetView {
top_canvas.style.top = '0';
top_canvas.style.zIndex = '1';

top_canvas.addEventListener('dblclick', this.mouse_event('dblclick'));
top_canvas.addEventListener(
'mousedown',
this.mouse_event('button_press')
Expand Down

0 comments on commit 01511c1

Please sign in to comment.