PWV-138: Switching selected handle from circle to highlighted line

This commit is contained in:
Bruno Alves de Faria committed 2017-09-18 15:45:55 -03:00
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;
}