Skip to content

Commit

Permalink
Fixed widget player loop when start is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Apr 3, 2021
1 parent 7410371 commit f245398
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions panel/models/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ export class Player extends Widget {
this.define<Player.Props>(({Boolean, Int}) => ({
direction: [ Int, 0 ],
interval: [ Int, 500 ],
start: [ Int ],
end: [ Int ],
start: [ Int, 0 ],
end: [ Int, 10 ],
step: [ Int, 1 ],
loop_policy: [ LoopPolicy, "once" ],
value: [ Int, 0 ],
Expand Down
4 changes: 2 additions & 2 deletions panel/models/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class Player(Widget):
The Player widget provides controls to play through a number of frames.
"""

start = Int(help="Lower bound of the Player slider")
start = Int(0, help="Lower bound of the Player slider")

end = Int(help="Upper bound of the Player slider")
end = Int(10, help="Upper bound of the Player slider")

value = Int(0, help="Current value of the player app")

Expand Down

0 comments on commit f245398

Please sign in to comment.