added some comments

This commit is contained in:
Aiday Marlen Kyzy
2023-02-27 16:18:30 +01:00
parent 4f9865e390
commit 9205453716
@@ -710,11 +710,13 @@ export class ViewLines extends ViewPart implements IVisibleLinesHost<ViewLine>,
if (!shouldIgnoreScrollOff) {
const context = Math.min((viewportHeight / this._lineHeight) / 2, this._cursorSurroundingLines);
if (this._stickyScrollEnabled && source !== 'api') {
console.log('context : ', context);
if (this._stickyScrollEnabled) {
paddingTop = Math.max(context, this._maxNumberStickyLines) * this._lineHeight;
} else {
paddingTop = context * this._lineHeight;
}
console.log('paddingTop : ', paddingTop);
paddingBottom = Math.max(0, (context - 1)) * this._lineHeight;
} else {
if (!minimalReveal) {