diff --git a/skins/base/views/molecules/MImageTile.js b/skins/base/views/molecules/MImageTile.js index 4b581e38..b35de04f 100644 --- a/skins/base/views/molecules/MImageTile.js +++ b/skins/base/views/molecules/MImageTile.js @@ -53,14 +53,17 @@ module.exports = React.createClass({ }, onClick: function(ev) { - ev.preventDefault(); - var content = this.props.mxEvent.getContent(); - var httpUrl = MatrixClientPeg.get().mxcUrlToHttp(content.url); - Modal.createDialog(ImageView, { - src: httpUrl, - width: content.info.w, - height: content.info.h - }); + var ms = ev.getModifierState(); + if (ev.button == 0 && !ev.metaKey) { + ev.preventDefault(); + var content = this.props.mxEvent.getContent(); + var httpUrl = MatrixClientPeg.get().mxcUrlToHttp(content.url); + Modal.createDialog(ImageView, { + src: httpUrl, + width: content.info.w, + height: content.info.h + }); + } }, render: function() { @@ -75,7 +78,7 @@ module.exports = React.createClass({ return ( - + {content.body}