@opentui/core 0.1.15 → 0.1.17

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/index.js CHANGED
@@ -118,7 +118,7 @@ import {
118
118
  white,
119
119
  wrapWithDelegates,
120
120
  yellow
121
- } from "./index-sw194bbj.js";
121
+ } from "./index-vg0fxf54.js";
122
122
  // src/post/filters.ts
123
123
  function applyScanlines(buffer, strength = 0.8, step = 2) {
124
124
  const width = buffer.width;
@@ -2756,6 +2756,7 @@ class SliderRenderable extends Renderable {
2756
2756
  let relativeStartPos = 0;
2757
2757
  this.onMouseDown = (event) => {
2758
2758
  event.stopPropagation();
2759
+ event.preventDefault();
2759
2760
  isDragging = true;
2760
2761
  const thumbRect = this.getThumbRect();
2761
2762
  const isOnThumb = event.x >= thumbRect.x && event.x < thumbRect.x + thumbRect.width && event.y >= thumbRect.y && event.y < thumbRect.y + thumbRect.height;
@@ -2942,6 +2943,7 @@ class ScrollBarRenderable extends Renderable {
2942
2943
  let endArrowMouseTimeout = undefined;
2943
2944
  this.startArrow.onMouseDown = (event) => {
2944
2945
  event.stopPropagation();
2946
+ event.preventDefault();
2945
2947
  this.scrollBy(-0.5, "viewport");
2946
2948
  startArrowMouseTimeout = setTimeout(() => {
2947
2949
  this.scrollBy(-0.5, "viewport");
@@ -2956,6 +2958,7 @@ class ScrollBarRenderable extends Renderable {
2956
2958
  };
2957
2959
  this.endArrow.onMouseDown = (event) => {
2958
2960
  event.stopPropagation();
2961
+ event.preventDefault();
2959
2962
  this.scrollBy(0.5, "viewport");
2960
2963
  endArrowMouseTimeout = setTimeout(() => {
2961
2964
  this.scrollBy(0.5, "viewport");
@@ -3231,6 +3234,8 @@ class ScrollBoxRenderable extends BoxRenderable {
3231
3234
  this.wrapper.add(this.viewport);
3232
3235
  this.content = new ContentRenderable(ctx, this.viewport, {
3233
3236
  alignSelf: "flex-start",
3237
+ minWidth: "100%",
3238
+ minHeight: "100%",
3234
3239
  onSizeChange: () => {
3235
3240
  this.recalculateBarProps();
3236
3241
  },
@@ -3672,5 +3677,5 @@ export {
3672
3677
  ASCIIFont
3673
3678
  };
3674
3679
 
3675
- //# debugId=B627209D76BECE1A64756E2164756E21
3680
+ //# debugId=24DCA0A436360CDD64756E2164756E21
3676
3681
  //# sourceMappingURL=index.js.map