From 6ddbb1f7656f16042dae85ba69283f75f08f20d8 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 26 May 2020 10:03:26 +0100 Subject: [PATCH] Code formatting --- src/components/viewComponents/streamDisplay.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/viewComponents/streamDisplay.vue b/src/components/viewComponents/streamDisplay.vue index 240f1f33..cc871c7e 100644 --- a/src/components/viewComponents/streamDisplay.vue +++ b/src/components/viewComponents/streamDisplay.vue @@ -135,15 +135,15 @@ export default { // Simply scaling by naturalHeight/offsetHeight may give the wrong answer! // because we use content-fit: contain in the stylesheet, the img element // may be larger than the picture. So, we must determine whether the - // width or height is setting the scaling factor, and use a uniform scale + // width or height is setting the scaling factor, and use a uniform scale // factor. - let scale = Math.max(event.target.naturalWidth/event.target.offsetWidth, - event.target.naturalHeight/event.target.offsetHeight); + let scale = Math.max( + event.target.naturalWidth / event.target.offsetWidth, + event.target.naturalHeight / event.target.offsetHeight + ); - let xRelative = - (0.5 * event.target.offsetWidth - xCoordinate) * scale; - let yRelative = - (0.5 * event.target.offsetHeight - yCoordinate) * scale; + let xRelative = (0.5 * event.target.offsetWidth - xCoordinate) * scale; + let yRelative = (0.5 * event.target.offsetHeight - yCoordinate) * scale; // Emit a signal to move, acted on by panelNavigate.vue this.$root.$emit(