Skip to content

Commit

Permalink
fix: angle-slider max value
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 committed Nov 25, 2024
1 parent 44106f6 commit 297a966
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clever-oranges-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zag-js/angle-slider": patch
---

Fix angle slider max value
2 changes: 1 addition & 1 deletion packages/machines/angle-slider/src/angle-slider.machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { dom } from "./angle-slider.dom"
import type { MachineContext, MachineState, UserDefinedContext } from "./angle-slider.types"

const MIN_VALUE = 0
const MAX_VALUE = 360
const MAX_VALUE = 359

export function machine(userContext: UserDefinedContext) {
const ctx = compact(userContext)
Expand Down

0 comments on commit 297a966

Please sign in to comment.