Skip to content
Snippets Groups Projects
Commit 97aa3c1c authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Properly ignore middle and right clicks in InteractiveImage

parent 5d5eca87
No related branches found
No related tags found
1 merge request!1155Properly ignore middle and right clicks in InteractiveImage
......@@ -273,7 +273,7 @@ export default {
},
mouseAction (e, action) {
// Ignore everything but the left mouse button
if (action === 'mousedown' && e.buttons !== 1) return
if (action === 'down' && e.buttons !== 1) return
const position = this.getPosition(e)
if (!position) throw new Error('Mouse position could not be determined on SVG layer.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment