Update src/js/View.js

Fixed the missing canvas parameter of the refactored `relMouseCoords` function.

Co-authored-by: Matthieu Baumann <baumannmatthieu0@gmail.com>
This commit is contained in:
Cédric Foellmi
2023-07-19 04:01:04 +02:00
committed by GitHub
parent 0b92b6d1db
commit 540f4e33be

View File

@@ -455,7 +455,7 @@ export let View = (function () {
// various listeners
let onDblClick = function (e) {
var xymouse = Utils.relMouseCoords(e);
const xymouse = Utils.relMouseCoords(view.imageCanvas, e);
// deselect all the selected sources with Select panel
view.deselectObjects()