add sizes to onDrag

This commit is contained in:
Nathan Cahill
2020-07-07 10:56:14 +02:00
parent 06e4a8bc50
commit e56e29fd64
2 changed files with 2 additions and 2 deletions

View File

@@ -309,7 +309,7 @@ const Split = (idsOption, options = {}) => {
// Call the drag callback continously. Don't do anything too intensive
// in this callback.
getOption(options, 'onDrag', NOOP)()
getOption(options, 'onDrag', NOOP)(getSizes())
}
// Cache some important sizes when drag starts, so we don't have to do that