Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
btamas committed Sep 8, 2022
1 parent cfca30c commit c72b88e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins/tools/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default pluginFactory({
'zoom',
true
);
}
};

/**
* Is zoom activated ? if not, then we hide the plugin
Expand All @@ -132,7 +132,7 @@ export default pluginFactory({
} else {
this.hide();
}
}
};

const zoomAction = dir => {
const inc = increment * dir;
Expand Down Expand Up @@ -165,19 +165,19 @@ export default pluginFactory({

this.$container.scrollLeft(sx).scrollTop(sy);
}
}
};

const zoomIn = () => {
if (this.getState('enabled') !== false) {
zoomAction(1);
}
}
};

const zoomOut = () => {
if (this.getState('enabled') !== false) {
zoomAction(-1);
}
}
};

/**
* Reapplys the same zoom level to the target
Expand Down

0 comments on commit c72b88e

Please sign in to comment.