mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 09:39:15 +00:00
Review code format fixes
This commit is contained in:
@@ -89,8 +89,8 @@ export default class TwoUp extends HTMLElement {
|
|||||||
// Set the initial position of the handle.
|
// Set the initial position of the handle.
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
const bounds = this.getBoundingClientRect();
|
const bounds = this.getBoundingClientRect();
|
||||||
this._position = (this.orientation === 'vertical' ?
|
const dimensionAxis = this.orientation === 'vertical' ? 'height' : 'width';
|
||||||
bounds.height : bounds.width) * this._relativePosition;
|
this._position = bounds[dimensionAxis] * this._relativePosition;
|
||||||
this._setPosition();
|
this._setPosition();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user