neon_crisp / Modules / utils/guiScrollManager / GuiScrollManager
Class: GuiScrollManager
utils/guiScrollManager.GuiScrollManager
Table of contents
Constructors
Properties
- firstTouch
- maxXScroll
- maxYScroll
- minXScroll
- minYScroll
- movingChild
- scrollArea
- scrollStartCB
- scrollStopCB
- sideToSide
- xOffset
- yOffset
Methods
Constructors
constructor
• new GuiScrollManager(scrollArea, movingChild, sideToSide?, scrollStartCB?, scrollStopCB?): GuiScrollManager
Parameters
| Name | Type |
|---|---|
scrollArea | node |
movingChild | node |
sideToSide? | boolean |
scrollStartCB? | () => void |
scrollStopCB? | () => void |
Returns
Defined in
Properties
firstTouch
• firstTouch: Object
Type declaration
| Name | Type |
|---|---|
firstTouch | boolean |
x | number |
y | number |
Defined in
maxXScroll
• maxXScroll: number = 0
Defined in
maxYScroll
• maxYScroll: number = 0
Defined in
minXScroll
• minXScroll: number = 0
Defined in
minYScroll
• minYScroll: number = 0
Defined in
movingChild
• movingChild: Object
Type declaration
| Name | Type |
|---|---|
node | node |
scrolling | boolean |
Defined in
scrollArea
• scrollArea: node
Defined in
scrollStartCB
• Optional scrollStartCB: () => void
Type declaration
▸ (): void
Returns
void
Defined in
scrollStopCB
• Optional scrollStopCB: () => void
Type declaration
▸ (): void
Returns
void
Defined in
sideToSide
• sideToSide: boolean = false
Defined in
xOffset
• xOffset: number = 0
Defined in
yOffset
• yOffset: number = 0
Defined in
Methods
getMinMaxScroll
▸ getMinMaxScroll(): Object
Returns
Object
| Name | Type |
|---|---|
maxX | number |
maxY | number |
minX | number |
minY | number |
Defined in
onDrop
▸ onDrop(): void
Returns
void
Defined in
onInput
▸ onInput(action_id, action): void
the main loop to call your draggables when called should be added to on_input
Parameters
| Name | Type |
|---|---|
action_id | hash |
action | Action |
Returns
void
Example
draggableManager.handleClicks(action_id, action)