Skip to content

Commit

Permalink
updateConfig when move slider too
Browse files Browse the repository at this point in the history
onchange only would trigger updateConfig when user releases the mouse from sliders. Adding oninput also allows updateConfig when dragging the sliders, which is nice cause user gets immediate feedback of the changes.
  • Loading branch information
ericfont committed Jul 21, 2021
1 parent 3ba9e81 commit 0c1e96c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions index_other.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ const uint8_t index_simple_html[] = R"=====(<!doctype html>
.querySelectorAll('.action-setting')
.forEach(el => {
el.onchange = () => updateConfig(el)
el.oninput = () => updateConfig(el)
})
// Custom actions
Expand Down
1 change: 1 addition & 0 deletions index_ov2640.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ const uint8_t index_ov2640_html[] = R"=====(<!doctype html>
.querySelectorAll('.default-action')
.forEach(el => {
el.onchange = () => updateConfig(el)
el.oninput = () => updateConfig(el)
})

// Custom actions
Expand Down
1 change: 1 addition & 0 deletions index_ov3660.h
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ const uint8_t index_ov3660_html[] = R"=====(<!doctype html>
.querySelectorAll('.default-action')
.forEach(el => {
el.onchange = () => updateConfig(el)
el.oninput = () => updateConfig(el)
})

// Custom actions
Expand Down

0 comments on commit 0c1e96c

Please sign in to comment.