@vdegenne/highlight-manager 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +3 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -172,12 +172,12 @@ export class HighLightManager {
|
|
|
172
172
|
return false;
|
|
173
173
|
}
|
|
174
174
|
// console.log(highlightIndexStart, highlightIndexEnd, start, end)
|
|
175
|
+
const baseScrollStrategy = options?.scrollStrategy ?? this.#options.scrollStrategy;
|
|
175
176
|
const _options = {
|
|
176
|
-
scrollStrategy:
|
|
177
|
+
scrollStrategy: baseScrollStrategy
|
|
177
178
|
? {
|
|
178
179
|
...scrollStrategyDefaults,
|
|
179
|
-
...
|
|
180
|
-
...options?.scrollStrategy,
|
|
180
|
+
...baseScrollStrategy,
|
|
181
181
|
}
|
|
182
182
|
: undefined,
|
|
183
183
|
};
|