Media Viewer: Allow right-click on image

This commit is contained in:
Alexander Zinchuk 2021-06-22 18:03:49 +03:00
parent 49d0e7987d
commit ceeac75510

View File

@ -97,7 +97,7 @@ export function captureEvents(element: HTMLElement, options: CaptureOptions) {
if (options.onRelease) {
options.onRelease(e);
}
} else if (options.onClick) {
} else if (options.onClick && (!('button' in e) || e.button === 0)) {
options.onClick(e);
}
}