Work on hero showcase component

This commit is contained in:
Aleksi Lassila
2024-03-23 21:18:18 +02:00
parent a5aa9755a6
commit fafb2e1345
9 changed files with 143 additions and 66 deletions

View File

@@ -88,8 +88,8 @@ export class Selectable {
if (offsetParent) {
const left = this.htmlElement.offsetLeft - offset;
console.log(boundingRect);
console.log('Scrolling to left: ', left);
// console.log(boundingRect);
// console.log('Scrolling to left: ', left);
offsetParent.scrollTo({
left,
behavior: 'smooth'
@@ -200,7 +200,7 @@ export class Selectable {
console.warn('Selectable already initialized', this);
}
console.log('Initializing', this.htmlElement);
// console.log('Initializing', this.htmlElement);
const parentSelectable = this.htmlElement.parentElement
? getParentSelectable(this.htmlElement.parentElement)