Comments (1)
For setting the scroll position, please use the SmoothScrollContainer.scroll_y_to(y_pos: float, duration:float=0.5)
and SmoothScrollContainer.scroll_x_to(x_pos: float, duration:float=0.5)
. If you don't want the smoothing you can just set the duration parameter to 0
.
Generally try to use the custom functions offered by the script instead of the basic ones offered by ScrollContainer
if possible. Otherwise, many features won't work due to the SmoothScrollScript
overwriting many properties. To see all custom functions of the script, go to the script tab and click on "Search Help". Then enter "SmoothScrollContainer" and press enter. Now you should see the documentation page of the SmoothScrollContainer class.
from smoothscroll.
Related Issues (20)
- Make scrollbars squeeze on overdrag HOT 4
- Possiblity of backport to 3.x? HOT 3
- Touch scroll not working in Godot 4
- Signals of SmoothScrollContainer children are not properly evaluated when dragging HOT 4
- Drag input within scroll containers not possible HOT 4
- Add option to hide scroll bar automatically over time
- Make scroll framerate independent HOT 2
- Scrollcontainer overdrags too far on fast mouse movement HOT 1
- Scroll signals not being emitted HOT 1
- General performance issue HOT 1
- Support trackpad scroll with InputEventPanGesture HOT 3
- Scrolling via mouse wheel does not work when hovering over child controls HOT 2
- Stuttering on slow movement HOT 2
- SmoothScrollContainer script errors randomly on initialization: ParserError: Could not find "ScrollDamper" in the current scope HOT 6
- Disabling "overdrag" not only does not prevent overdrag, but causes jittery movement on right and bottom edges HOT 5
- Overdrag triggering constantly when middle mousebutton pressed to the side HOT 10
- Setting horizontal and vertical scroll values does not work for SmoothScrollContainer HOT 3
- Dragging scroll bar presents weird behavior HOT 1
- Touch pressing does not work when exporting to HTML5 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smoothscroll.