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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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 + 1);
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);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "okai",
3
3
  "type": "module",
4
- "version": "0.0.17",
4
+ "version": "0.0.18",
5
5
  "bin": "./dist/okai.js",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",