Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
replaced left in center dom with translateY
Browse files Browse the repository at this point in the history
  • Loading branch information
jarnovanrhijn committed May 20, 2019
1 parent 4386b5b commit a609953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeline/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ class Core {
offset += Math.max(props.centerContainer.height - props.center.height -
props.border.top - props.border.bottom, 0);
}
dom.center.style.top = `${offset}px`;
dom.center.style.transform = `translateY(${offset}px)`;

// show shadows when vertical scrolling is available
const visibilityTop = props.scrollTop == 0 ? 'hidden' : '';
Expand Down

0 comments on commit a609953

Please sign in to comment.