Change comment styling

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-02-25 07:51:38 +01:00
parent d58c17ff3b
commit fe8e90f920
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 6 additions and 6 deletions

View File

@ -72,8 +72,8 @@ export default class ImageView extends React.Component {
maxZoom = 300;
componentDidMount() {
/* We have to use addEventListener() because the listener
* needs to be passive in order to work with Chromium */
// We have to use addEventListener() because the listener
// needs to be passive in order to work with Chromium
this.focusLock.addEventListener('wheel', this.onWheel, { passive: false });
}
@ -259,10 +259,10 @@ export default class ImageView extends React.Component {
const zoomPercentage = this.state.zoom/100;
const translatePixelsX = this.state.translationX + "px";
const translatePixelsY = this.state.translationY + "px";
/* The order of the values is important!
* First, we translate and only then we rotate, otherwise
* we would apply the translation to an already rotated
* image causing it translate in the wrong direction. */
// The order of the values is important!
// First, we translate and only then we rotate, otherwise
// we would apply the translation to an already rotated
// image causing it translate in the wrong direction.
const style = {
cursor: this.state.moving ? "grabbing" : "grab",
transform: `translateX(${translatePixelsX})