diff --git a/package.json b/package.json index 3f0ce55d..50f5e52f 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/mpl_widget.ts b/src/mpl_widget.ts index 9814a90f..06841f2b 100644 --- a/src/mpl_widget.ts +++ b/src/mpl_widget.ts @@ -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')