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.
|
||||
requestAnimationFrame(() => {
|
||||
const bounds = this.getBoundingClientRect();
|
||||
this._position = (this.orientation === 'vertical' ?
|
||||
bounds.height : bounds.width) * this._relativePosition;
|
||||
const dimensionAxis = this.orientation === 'vertical' ? 'height' : 'width';
|
||||
this._position = bounds[dimensionAxis] * this._relativePosition;
|
||||
this._setPosition();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user