acrolinx-sidebar-sdk
Advanced tools
Comparing version 0.4.32 to 0.4.33
import { Match, MatchWithReplacement, Check, DocumentSelection, CheckedDocumentPart, CheckInformationKeyValuePair } from "../acrolinx-libs/plugin-interfaces"; | ||
export interface CommonAdapterConf { | ||
scrollOffsetY?: number; | ||
/** | ||
* Options forwarded to scrollIntoView in some adapters. | ||
* If set, scrollOffsetY might be ignored. | ||
* Experimental. | ||
*/ | ||
scrollIntoViewOptions?: ScrollIntoViewOptions; | ||
} | ||
@@ -5,0 +11,0 @@ export interface HasEditorID extends CommonAdapterConf { |
@@ -43,3 +43,8 @@ "use strict"; | ||
ContentEditableAdapter.prototype.scrollElementIntoView = function (el) { | ||
scrolling_1.scrollIntoView(el, this.config.scrollOffsetY); | ||
if (('scrollBehavior' in document.body.style) && this.config.scrollIntoViewOptions) { | ||
el.scrollIntoView(this.config.scrollIntoViewOptions); | ||
} | ||
else { | ||
scrolling_1.scrollIntoView(el, this.config.scrollOffsetY); | ||
} | ||
}; | ||
@@ -46,0 +51,0 @@ return ContentEditableAdapter; |
{ | ||
"name": "acrolinx-sidebar-sdk", | ||
"description": "Acrolinx Sidebar SDK for JavaScript", | ||
"version": "0.4.32", | ||
"version": "0.4.33", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Acrolinx", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1793691
5853