mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-12-08 20:48:46 +00:00
Working draggable modals
This commit is contained in:
9
src/util.js
Normal file
9
src/util.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export const inRange = (from, to, value) => {
|
||||
if (value > to) {
|
||||
return to
|
||||
}
|
||||
if (value < from) {
|
||||
return from
|
||||
}
|
||||
return value
|
||||
}
|
||||
Reference in New Issue
Block a user