Skip to content

Commit

Permalink
Fix emoji placement and offset (#2182)
Browse files Browse the repository at this point in the history
Closes #2143
  • Loading branch information
Pomax authored and alanmoo committed Nov 14, 2018
1 parent 58bdc00 commit 16a634f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/js/buyers-guide/homepage-c-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default {

// The averageCreepiness will be in range [1,100] so we can dec1 the
// valueto make sure we're in frame range [0,frames.length-1]:
let frame = Math.round(totalSteps * (averageCreepiness-1)/100);
let frame = Math.round((totalSteps-1) * (averageCreepiness-1)/100);

face.style.backgroundPositionY = `${-frame * creepStep}px`;

Expand Down

0 comments on commit 16a634f

Please sign in to comment.