PWV-138: Switching selected handle from circle to highlighted line
This commit is contained in:
1 parent
8c6a72cc0f
commit
45d660636b
6 files changed
+164
-12
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// Get the key for the handle which is selected
|
||||
export default function(handles) {
|
||||
let selectedHandleKey;
|
||||
Object.keys(handles).every(handleKey => {
|
||||
const handle = handles[handleKey];
|
||||
if (handle.selected) {
|
||||
selectedHandleKey = handleKey;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
return selectedHandleKey;
|
||||
}
|
||||
Reference in new issue
Block a user