Skip to content
Snippets Groups Projects
Commit 4134a40d authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'ignore-right-click' into 'master'

Properly ignore middle and right clicks in InteractiveImage

See merge request !1155
parents 5d5eca87 97aa3c1c
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