mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-12-08 20:48:46 +00:00
Updated demo, moved "adapt" controller into function
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
export const inRange = (from, to, value) => {
|
||||
if (value > to) {
|
||||
return to
|
||||
}
|
||||
if (value < from) {
|
||||
return from
|
||||
}
|
||||
|
||||
if (value > to) {
|
||||
return to
|
||||
}
|
||||
|
||||
return value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user