Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Oct 27, 2024
2 parents ee30fde + f781c82 commit eb9797c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/ui-textarea/bitmaptext-snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Demo extends Phaser.Scene {
track: this.rexUI.add.roundRectangle(0, 0, 20, 10, 10, COLOR_DARK),
thumb: this.rexUI.add.roundRectangle(0, 0, 0, 0, 13, COLOR_LIGHT),

gapLength: lineHeight
tickLength: lineHeight
},

content: CreateContent(1000),
Expand Down
2 changes: 1 addition & 1 deletion templates/ui/utils/scrollable/AddSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var AddSlider = function (topPatent, sliderParent, axis, config) {
sliderConfig.orientation = (isAxisY) ? 1 : 0;
slider = CreateScrollbar(topPatent.scene, sliderConfig);

slider.gapLength = GetValue(sliderConfig, 'gapLength', undefined);
slider.tickLength = GetValue(sliderConfig, 'tickLength', undefined);

var column, row, padding;

Expand Down
4 changes: 2 additions & 2 deletions templates/ui/utils/scrollable/ResizeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ var SetControllerBounds = function (axis) {
if (slider) {
slider.setEnable(bound0 !== bound1);

if (slider.gapLength) {
slider.setGap(slider.gapLength, bound0, bound1);
if (slider.tickLength) {
slider.setTick(slider.tickLength, bound0, bound1);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions templates/ui/utils/scrollable/Scrollable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ declare namespace Scrollable {
thumb?: Phaser.GameObjects.GameObject | RoundRecrangle.IConfig,
input?: SliderInputTypes,
position?: SliderPositionTypes,
gap?: number,
gapLength?: number,
tick?: number,
tickLength?: number,

hideUnscrollableSlider?: boolean,
disableUnscrollableDrag?: boolean,
Expand Down

0 comments on commit eb9797c

Please sign in to comment.