mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-14 16:35:07 +01:00
fix alpha overlap during scrolled code highlight transitions
This commit is contained in:
parent
c5307462b0
commit
487cc860f8
5 changed files with 10 additions and 4 deletions
|
|
@ -194,6 +194,8 @@ const Plugin = {
|
|||
var startTop = block.scrollTop;
|
||||
var targetTop = highlightBounds.top + ( Math.min( highlightBounds.bottom - highlightBounds.top, viewportHeight ) - viewportHeight ) / 2;
|
||||
|
||||
console.log(startTop, targetTop)
|
||||
|
||||
// Account for offsets in position applied to the
|
||||
// <table> that holds our lines of code
|
||||
var lineTable = block.querySelector( '.hljs-ln' );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue