diff --git a/MultimediaViewer.php b/MultimediaViewer.php index c0b4bef28..90949e6e6 100644 --- a/MultimediaViewer.php +++ b/MultimediaViewer.php @@ -1064,7 +1064,7 @@ $wgResourceModules += array( $wgHooks['EventLoggingRegisterSchemas'][] = function( array &$schemas ) { $schemas += array( - 'MediaViewer' => 10606177, + 'MediaViewer' => 10867062, 'MultimediaViewerNetworkPerformance' => 10774577, 'MultimediaViewerDuration' => 10427980, 'MultimediaViewerAttribution' => 9758179, diff --git a/resources/mmv/logging/mmv.logging.ActionLogger.js b/resources/mmv/logging/mmv.logging.ActionLogger.js index 1e331478c..7d55dd0f7 100644 --- a/resources/mmv/logging/mmv.logging.ActionLogger.js +++ b/resources/mmv/logging/mmv.logging.ActionLogger.js @@ -95,6 +95,7 @@ 'download-select-menu-large': 'User selected the large size in the download dropdown menu.', 'download': 'User clicked on the button to download a file.', 'download-view-in-browser': 'User clicked on the link to view the image in the browser in the download tab.', + 'right-click-image': 'User right-clicked on the image.', 'share-page': 'User opened the link to the current image.', 'share-link-copied': 'User copied the share link.', 'embed-html-copied': 'User copied the HTML embed code.', diff --git a/resources/mmv/ui/mmv.ui.canvas.js b/resources/mmv/ui/mmv.ui.canvas.js index 1a45ee172..33d60293b 100644 --- a/resources/mmv/ui/mmv.ui.canvas.js +++ b/resources/mmv/ui/mmv.ui.canvas.js @@ -213,6 +213,12 @@ } ); } } ); + + this.$image.on( 'mousedown.mmv-canvas', function ( e ) { + if ( e.which === 3 ) { + mw.mmv.actionLogger.log( 'right-click-image' ); + } + } ); }; /**