Skip to content

Commit

Permalink
Merge pull request #16 from suresh-gangumalla/fix/tmdb-hero-type-x-tr…
Browse files Browse the repository at this point in the history
…ansition

Fixes X position issue for hero type on scrolling
  • Loading branch information
michielvandergeest authored Feb 29, 2024
2 parents cfb5cc4 + bbdbc75 commit 5e582ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TmdbRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default Blits.Component('TmdbRow', {
},
computed: {
x() {
return 150 - Math.min(this.focused, this.items.length - 8) * this.width
return 150 - Math.min(this.focused, this.items.length - 1720 / this.width) * this.width
},
},
watch: {
Expand Down

0 comments on commit 5e582ee

Please sign in to comment.