Commit 6ddbb1f7 authored by Joel Collins's avatar Joel Collins
Browse files

Code formatting

parent a6ac7675
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -137,13 +137,13 @@ export default {
      // 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
      // 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(