Working draggable modals

This commit is contained in:
euvl
2017-04-10 12:01:42 +01:00
parent d165145124
commit fb02b6be93
3 changed files with 42 additions and 56 deletions

9
src/util.js Normal file
View File

@@ -0,0 +1,9 @@
export const inRange = (from, to, value) => {
if (value > to) {
return to
}
if (value < from) {
return from
}
return value
}