mirror of
https://github.com/slidevjs/rough-notation.git
synced 2026-01-20 04:01:34 +01:00
fixed a bug in rehighlighting
This commit is contained in:
@@ -216,9 +216,9 @@ class RoughAnnotationImpl implements RoughAnnotation {
|
||||
let delay = 0;
|
||||
for (let i = 0; i < rects.length; i++) {
|
||||
const rect = rects[i];
|
||||
config.animationDuration = totalDuration * (rect.w / totalWidth);
|
||||
renderAnnotation(svg, rects[i], config, delay + this._animationDelay, this._seed);
|
||||
delay += config.animationDuration;
|
||||
const ad = totalDuration * (rect.w / totalWidth);
|
||||
renderAnnotation(svg, rects[i], config, delay + this._animationDelay, ad, this._seed);
|
||||
delay += ad;
|
||||
}
|
||||
this._lastSizes = rects;
|
||||
this._state = 'showing';
|
||||
|
||||
Reference in New Issue
Block a user