Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dos
flow3r firmware
Commits
d463db10
Commit
d463db10
authored
Sep 10, 2023
by
dos
Committed by
moon2
Sep 13, 2023
Browse files
Options
Downloads
Patches
Plain Diff
py,st3m: ScrollController: Limit physics steps to 100ms
Too high deltas can cause current position to be pushed very far.
parent
8f799b5f
No related branches found
No related tags found
No related merge requests found
Pipeline
#8031
passed
Sep 13, 2023
Stage: check
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_payload/st3m/ui/interactions.py
+1
-1
1 addition, 1 deletion
python_payload/st3m/ui/interactions.py
with
1 addition
and
1 deletion
python_payload/st3m/ui/interactions.py
+
1
−
1
View file @
d463db10
...
...
@@ -77,7 +77,7 @@ class ScrollController(st3m.Responder):
if
self
.
_target_position
>=
self
.
_nitems
:
self
.
_target_position
=
self
.
_nitems
-
1
self
.
_physics_step
(
delta_ms
/
1000.0
)
self
.
_physics_step
(
min
(
delta_ms
,
100
)
/
1000.0
)
def
draw
(
self
,
ctx
:
Context
)
->
None
:
pass
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment