Skip to content

Commit

Permalink
Update lib/kino/input.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Jonatan Kłosko <[email protected]>
  • Loading branch information
cristineguadelupe and jonatanklosko authored Oct 6, 2023
1 parent f03e26a commit 1732f71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/kino/input.ex
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ defmodule Kino.Input do
max = Keyword.get(opts, :max, 100)
step = Keyword.get(opts, :step, 1)
default = Keyword.get(opts, :default, min)
debounce = Keyword.get(opts, :debounce, 300)
# In Safari range input is blured as soon as it's clicked,
# so we don't support blur as debounce for this input
debounce = Keyword.get(opts, :debounce, 250)

if min >= max do
raise ArgumentError,
Expand Down

0 comments on commit 1732f71

Please sign in to comment.