okai 0.0.17 → 0.0.18
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/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -547,7 +547,7 @@ async function createGistPreview(title, gist) {
|
|
547
547
|
// Page Down handler
|
548
548
|
if (key.name === 'pagedown') {
|
549
549
|
// Calculate max scroll position to prevent scrolling beyond content
|
550
|
-
const maxScroll = Math.max(0, contentHeight - boxHeight +
|
550
|
+
const maxScroll = Math.max(0, contentHeight - boxHeight + 2);
|
551
551
|
// Calculate new scroll position, ensuring it doesn't exceed max
|
552
552
|
const newScrollPosition = Math.min(maxScroll, currentScroll + scrollAmount);
|
553
553
|
preview.setScroll(newScrollPosition);
|