Skip to content

Commit

Permalink
feat(picking): now "drag drop rotation gizmo" will not trigger pick
Browse files Browse the repository at this point in the history
  • Loading branch information
yyc-git committed Feb 7, 2019
1 parent 0592a20 commit 60d002e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/job/init/InitPickingJob.re
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ let _handlePicking = (event: EventType.customEvent, engineState) => {
let _isHandlePicking = (event, editorState) =>
MouseEventService.isLeftMouseButton(event)
&& !
SelectTranslationGizmoSceneViewEditorService.isSelectAnyTranslationGizmo(
SelectTransformGizmoSceneViewEditorService.isSelectAnyTransformGizmo(
editorState,
);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
let markNotSelectAnyTransformGizmo = editorState =>
editorState
|> SelectTranslationGizmoSceneViewEditorService.markNotSelectAnyTranslationGizmo
|> SelectRotationGizmoSceneViewEditorService.markNotSelectAnyRotationGizmo;
|> SelectRotationGizmoSceneViewEditorService.markNotSelectAnyRotationGizmo;

let isSelectAnyTransformGizmo = editorState =>
SelectTranslationGizmoSceneViewEditorService.isSelectAnyTranslationGizmo(
editorState,
)
|| SelectRotationGizmoSceneViewEditorService.isSelectAnyRotationGizmo(
editorState,
);

0 comments on commit 60d002e

Please sign in to comment.