mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-17 20:11:19 +02:00
fix alpha overlap during scrolled code highlight transitions
This commit is contained in:
@@ -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' );
|
||||
|
Reference in New Issue
Block a user